Added Google libraries
Channel page and video card
This commit is contained in:
+7
-28
@@ -10,8 +10,6 @@
|
|||||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="47"/>
|
<RowDefinition Height="47"/>
|
||||||
<RowDefinition MinHeight="50" MaxHeight="310"/>
|
|
||||||
<RowDefinition Height="75"/>
|
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Grid Grid.Row="0" Background="Red">
|
<Grid Grid.Row="0" Background="Red">
|
||||||
@@ -21,33 +19,14 @@
|
|||||||
<HyperlinkButton Content="Community" Foreground="White" Margin="10,8,10,10"/>
|
<HyperlinkButton Content="Community" Foreground="White" Margin="10,8,10,10"/>
|
||||||
<HyperlinkButton Content="Channels" Foreground="White" Margin="10,8,10,10"/>
|
<HyperlinkButton Content="Channels" Foreground="White" Margin="10,8,10,10"/>
|
||||||
<HyperlinkButton Content="About channel" Foreground="White" FontStyle="Normal" Margin="10,8,10,10"/>
|
<HyperlinkButton Content="About channel" Foreground="White" FontStyle="Normal" Margin="10,8,10,10"/>
|
||||||
|
<TextBox Name="searchField" ToolTipService.ToolTip="Search on channel" Margin="4" Width="350" Height="47" Padding="10,10,10,0" PlaceholderText="Search on channel" BorderThickness="0" Background="#7FFFFFFF" AcceptsReturn="True"/>
|
||||||
|
<Button Name="searchButton" HorizontalAlignment="Right"
|
||||||
|
Width="39" Height="39" Margin="0"
|
||||||
|
RelativePanel.AlignRightWithPanel="True"
|
||||||
|
Background="Transparent"
|
||||||
|
FontFamily="Segoe MDL2 Assets" Content="" FontSize="20" FocusVisualSecondaryBrush="#66FFFFFF" FocusVisualPrimaryBrush="White" Foreground="White"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Image Grid.Row="1" Name="ChannelCover" Width="1920" Source="Assets/ChannelCoverTemplate.png"/>
|
<Frame Grid.Row="1" Name="content"/>
|
||||||
<Grid Grid.Row="2">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="120"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
<ColumnDefinition Width="250"/>
|
|
||||||
<ColumnDefinition Width="50"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<PersonPicture Grid.Column="0" HorizontalAlignment="Left" Margin="10,-30,0,0"/>
|
|
||||||
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="10,0,0,0">
|
|
||||||
<TextBlock FontWeight="SemiBold" FontSize="22" Text="Channel name"/>
|
|
||||||
<TextBlock Foreground="Gray" Text="1 000 000 subscribers"/>
|
|
||||||
</StackPanel>
|
|
||||||
<Button Grid.Column="2" Height="50" Width="250" Background="Red" Foreground="White" FontSize="18" FontWeight="SemiBold" Content="Subscirbe"/>
|
|
||||||
<Button Grid.Column="3" Height="50" Width="50" FontFamily="Segoe MDL2 Asset" Content=""/>
|
|
||||||
</Grid>
|
|
||||||
<!--<StackPanel Grid.Row="2" Orientation="Horizontal">
|
|
||||||
<PersonPicture HorizontalAlignment="Left" Margin="10,-30,0,0"/>
|
|
||||||
<StackPanel Orientation="Vertical" Margin="10,0,0,0">
|
|
||||||
<TextBlock FontWeight="SemiBold" FontSize="22" Text="Channel name"/>
|
|
||||||
<TextBlock Foreground="Gray" Text="1 000 000 subscribers"/>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
|
||||||
<Button Content="Subscirbe"/>
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>-->
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ namespace FoxTube
|
|||||||
public Channel()
|
public Channel()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
|
content.Navigate(typeof(ChannelVideos));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.ChannelVideos"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition MinHeight="50" MaxHeight="310"/>
|
||||||
|
<RowDefinition Height="75"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Image Grid.Row="0" Name="ChannelCover" Width="1920" Source="Assets/ChannelCoverTemplate.png"/>
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="120"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="250"/>
|
||||||
|
<ColumnDefinition Width="60"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<PersonPicture Grid.Column="0" HorizontalAlignment="Left" Margin="10,-40,0,0" ProfilePicture="Assets/LogoAvatar.png"/>
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="10,0,0,0">
|
||||||
|
<TextBlock FontWeight="SemiBold" FontSize="22" Text="Channel name"/>
|
||||||
|
<TextBlock Foreground="Gray" Text="1 000 000 subscribers"/>
|
||||||
|
</StackPanel>
|
||||||
|
<ToggleButton Grid.Column="2" Height="50" Width="250" Background="Red" Foreground="White" FontSize="18" FontWeight="SemiBold" Content="Subscirbe"/>
|
||||||
|
<ToggleButton Grid.Column="3" Height="50" Width="50" FontFamily="Segoe MDL2 Assets" FontSize="18" FontWeight="SemiBold" Content="" Foreground="White" Background="Red"/>
|
||||||
|
<!---->
|
||||||
|
</Grid>
|
||||||
|
<Frame Name="content" Grid.Row="2"/>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class ChannelVideos : Page
|
||||||
|
{
|
||||||
|
public ChannelVideos()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
content.Navigate(typeof(VideoGrid));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -101,12 +101,18 @@
|
|||||||
<Compile Include="Channel.xaml.cs">
|
<Compile Include="Channel.xaml.cs">
|
||||||
<DependentUpon>Channel.xaml</DependentUpon>
|
<DependentUpon>Channel.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="ChannelVideos.xaml.cs">
|
||||||
|
<DependentUpon>ChannelVideos.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Feedback.xaml.cs">
|
<Compile Include="Feedback.xaml.cs">
|
||||||
<DependentUpon>Feedback.xaml</DependentUpon>
|
<DependentUpon>Feedback.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="General.xaml.cs">
|
<Compile Include="General.xaml.cs">
|
||||||
<DependentUpon>General.xaml</DependentUpon>
|
<DependentUpon>General.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Home.xaml.cs">
|
||||||
|
<DependentUpon>Home.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="MainFrame.xaml.cs">
|
<Compile Include="MainFrame.xaml.cs">
|
||||||
<DependentUpon>MainFrame.xaml</DependentUpon>
|
<DependentUpon>MainFrame.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -121,6 +127,12 @@
|
|||||||
<Compile Include="Translate.xaml.cs">
|
<Compile Include="Translate.xaml.cs">
|
||||||
<DependentUpon>Translate.xaml</DependentUpon>
|
<DependentUpon>Translate.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="VideoCard.xaml.cs">
|
||||||
|
<DependentUpon>VideoCard.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="VideoGrid.xaml.cs">
|
||||||
|
<DependentUpon>VideoGrid.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AppxManifest Include="Package.appxmanifest">
|
<AppxManifest Include="Package.appxmanifest">
|
||||||
@@ -196,6 +208,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="ChannelVideos.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="Feedback.xaml">
|
<Page Include="Feedback.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -204,6 +220,10 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="Home.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
<Page Include="MainFrame.xaml">
|
<Page Include="MainFrame.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@@ -220,8 +240,28 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Include="VideoCard.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="VideoGrid.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Google.Apis">
|
||||||
|
<Version>1.32.2</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Google.Apis.Auth">
|
||||||
|
<Version>1.32.2</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Google.Apis.Core">
|
||||||
|
<Version>1.32.2</Version>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Google.Apis.YouTube.v3">
|
||||||
|
<Version>1.32.2.1198</Version>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||||
<Version>6.0.8</Version>
|
<Version>6.0.8</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.Home"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="47"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Row="0" Background="Red">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<HyperlinkButton Content="Recommended" Foreground="White" Margin="10,8,10,10"/>
|
||||||
|
<HyperlinkButton Content="Trending" Foreground="White" Margin="10,8,10,10"/>
|
||||||
|
<HyperlinkButton Content="Subscriptions" Foreground="White" Margin="10,8,10,10"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
<Frame Grid.Row="1" Name="content"/>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class Home : Page
|
||||||
|
{
|
||||||
|
public Home()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
content.Navigate(typeof(VideoGrid));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+5
-21
@@ -45,30 +45,14 @@
|
|||||||
<Button Name="notificationMenu" Grid.Column="6" ToolTipService.ToolTip="Notifications" Click="notification_Click"
|
<Button Name="notificationMenu" Grid.Column="6" ToolTipService.ToolTip="Notifications" Click="notification_Click"
|
||||||
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
FontFamily="Segoe MDL2 Assets" Content="" Foreground="White"
|
||||||
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
Width="50" Height="50" Background="#00000000" RelativePanel.LeftOf="searchField"/>
|
||||||
<Popup Grid.Column="6" Margin="0,50,0,0" Name="notificationPane" IsOpen="True" IsLightDismissEnabled="True">
|
<Popup Grid.Column="6" Margin="0,50,0,0" Name="notificationPane" IsOpen="False" IsLightDismissEnabled="True">
|
||||||
<StackPanel Width="350" Background="WhiteSmoke" Padding="0,10,0,0">
|
<StackPanel Width="350" Background="WhiteSmoke" Padding="0,10,0,0">
|
||||||
<TextBlock Text="Notifications" HorizontalAlignment="Center" FontWeight="Bold"/>
|
<TextBlock Text="Notifications" HorizontalAlignment="Center" FontWeight="Bold"/>
|
||||||
<StackPanel Margin="0,10,0,0">
|
<StackPanel Margin="0,10,0,0">
|
||||||
<TextBlock Text="You have no any notification" Name="noNotifText" Foreground="Gray" FontStyle="Italic" Padding="10" Visibility="Collapsed"/>
|
<TextBlock Text="You have no any notification" Name="noNotifText" Foreground="Gray" FontStyle="Italic" Padding="10" Visibility="Visible"/>
|
||||||
<StackPanel Name="notificationPanel" Visibility="Visible">
|
<StackPanel Name="notificationPanel" Visibility="Collapsed">
|
||||||
<ListBox Width="350" Padding="0,0,0,10" Name="notificationArray">
|
<ListBox Width="350" Padding="0,0,0,10" Name="notificationArray">
|
||||||
<ListBoxItem Padding="10" MinHeight="80">
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<PersonPicture Height="50" HorizontalAlignment="Left" Margin="0,0,10,0" VerticalAlignment="Top" ProfilePicture="Assets/LogoAvatar.png"/>
|
|
||||||
<StackPanel MaxWidth="270">
|
|
||||||
<TextBlock FontSize="14" FontStyle="Italic" Foreground="Gray" Text="Channel name"/>
|
|
||||||
<TextBlock TextWrapping="WrapWholeWords" Text="This is very long notification. One, two, three, four, five, six, seven, eight, nine, ten."/>
|
|
||||||
<TextBlock Foreground="Gray" Text="HH:MM TT" FontSize="13"/>
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
|
||||||
</ListBoxItem>
|
|
||||||
<ListBoxItem Padding="10" VerticalAlignment="Stretch" Background="LightGray" MinHeight="80" Height="100">
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock FontSize="14" FontStyle="Italic" Foreground="Gray" Text="Channel name"/>
|
|
||||||
<TextBlock TextWrapping="WrapWholeWords" Text="This is very long notification. One, two, three, four, five, six, seven, eight, nine, ten."/>
|
|
||||||
<TextBlock Foreground="Gray" Text="HH:MM TT" FontSize="13"/>
|
|
||||||
</StackPanel>
|
|
||||||
</ListBoxItem>
|
|
||||||
</ListBox>
|
</ListBox>
|
||||||
<Button Content="Clear all" HorizontalAlignment="Right" Margin="10,0,10,10" Name="clearNotifications" Click="clearNotifications_Click"/>
|
<Button Content="Clear all" HorizontalAlignment="Right" Margin="10,0,10,10" Name="clearNotifications" Click="clearNotifications_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -174,7 +158,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Popup>
|
</Popup>
|
||||||
</Grid>
|
</Grid>
|
||||||
<SplitView Name="menu" Grid.Row="1" OpenPaneLength="250" CompactPaneLength="50" DisplayMode="CompactInline" IsPaneOpen="True">
|
<SplitView Name="menu" Grid.Row="1" OpenPaneLength="250" CompactPaneLength="50" DisplayMode="CompactInline" IsPaneOpen="True" PaneClosing="menu_PaneClosed" PaneOpening="menu_PaneOpened">
|
||||||
<SplitView.Pane>
|
<SplitView.Pane>
|
||||||
<RelativePanel>
|
<RelativePanel>
|
||||||
<ListBox SelectionChanged="ListBox_SelectionChanged" Name="topHamburger">
|
<ListBox SelectionChanged="ListBox_SelectionChanged" Name="topHamburger">
|
||||||
|
|||||||
+36
-31
@@ -32,7 +32,7 @@ namespace FoxTube
|
|||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
content.Navigate(typeof(Settings));
|
content.Navigate(typeof(Home));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||||
@@ -55,23 +55,6 @@ namespace FoxTube
|
|||||||
{
|
{
|
||||||
menu.IsPaneOpen = !menu.IsPaneOpen;
|
menu.IsPaneOpen = !menu.IsPaneOpen;
|
||||||
//AddNotification(new Notification("Internal notification", "Menu state has been changed", DateTime.Now, NotificationType.Update));
|
//AddNotification(new Notification("Internal notification", "Menu state has been changed", DateTime.Now, NotificationType.Update));
|
||||||
|
|
||||||
if(menu.IsPaneOpen)
|
|
||||||
{
|
|
||||||
subsMenuTitle.Visibility = Visibility.Visible;
|
|
||||||
subsMenuStroke.X2 = 165;
|
|
||||||
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 10;
|
|
||||||
subscriptionsTitle.Height = 17;
|
|
||||||
subsLogErr.Visibility = Visibility.Visible;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
subsMenuTitle.Visibility = Visibility.Collapsed;
|
|
||||||
subsMenuStroke.X2 = 40;
|
|
||||||
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 0;
|
|
||||||
subscriptionsTitle.Height = 2;
|
|
||||||
subsLogErr.Visibility = Visibility.Collapsed;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddNotification(Notification notification , bool needNotify = true)
|
public void AddNotification(Notification notification , bool needNotify = true)
|
||||||
@@ -200,27 +183,25 @@ namespace FoxTube
|
|||||||
{
|
{
|
||||||
if(topHamburger.SelectedIndex == 0)
|
if(topHamburger.SelectedIndex == 0)
|
||||||
{
|
{
|
||||||
content.Navigate(typeof(About));
|
content.Navigate(typeof(Home));
|
||||||
menu.DisplayMode = SplitViewDisplayMode.CompactInline;
|
menu.DisplayMode = SplitViewDisplayMode.CompactInline;
|
||||||
menu.IsPaneOpen = true;
|
menu.IsPaneOpen = true;
|
||||||
|
|
||||||
subsMenuTitle.Visibility = Visibility.Visible;
|
|
||||||
subsMenuStroke.X2 = 165;
|
|
||||||
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 10;
|
|
||||||
subscriptionsTitle.Height = 17;
|
|
||||||
subsLogErr.Visibility = Visibility.Visible;
|
|
||||||
}
|
}
|
||||||
else if (bottomHaburger.SelectedIndex == 3)
|
else if (bottomHaburger.SelectedIndex == 3)
|
||||||
{
|
{
|
||||||
content.Navigate(typeof(Settings));
|
content.Navigate(typeof(Settings));
|
||||||
menu.DisplayMode = SplitViewDisplayMode.CompactOverlay;
|
menu.DisplayMode = SplitViewDisplayMode.CompactOverlay;
|
||||||
menu.IsPaneOpen = false;
|
menu.IsPaneOpen = false;
|
||||||
|
}
|
||||||
subsMenuTitle.Visibility = Visibility.Collapsed;
|
else if (bottomHaburger.SelectedIndex == 0)
|
||||||
subsMenuStroke.X2 = 40;
|
{
|
||||||
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 0;
|
content.Navigate(typeof(Channel));
|
||||||
subscriptionsTitle.Height = 2;
|
menu.DisplayMode = SplitViewDisplayMode.CompactOverlay;
|
||||||
subsLogErr.Visibility = Visibility.Collapsed;
|
menu.IsPaneOpen = false;
|
||||||
|
}
|
||||||
|
else if (bottomHaburger.SelectedIndex == 2)
|
||||||
|
{
|
||||||
|
bottomHaburger.SelectedItem = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,5 +232,29 @@ namespace FoxTube
|
|||||||
Settings s = content.Content as Settings;
|
Settings s = content.Content as Settings;
|
||||||
s.content.Navigate(typeof(Feedback));
|
s.content.Navigate(typeof(Feedback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void menu_PaneClosed(SplitView sender, object args)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
subsMenuTitle.Visibility = Visibility.Collapsed;
|
||||||
|
subsMenuStroke.X2 = 40;
|
||||||
|
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 0;
|
||||||
|
subscriptionsTitle.Height = 2;
|
||||||
|
subsLogErr.Visibility = Visibility.Collapsed;
|
||||||
|
} catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
private void menu_PaneOpened(SplitView sender, object args)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
subsMenuTitle.Visibility = Visibility.Visible;
|
||||||
|
subsMenuStroke.X2 = 165;
|
||||||
|
subsMenuStroke.Y1 = subsMenuStroke.Y2 = 10;
|
||||||
|
subscriptionsTitle.Height = 17;
|
||||||
|
subsLogErr.Visibility = Visibility.Visible;
|
||||||
|
} catch { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
<UserControl
|
||||||
|
x:Class="FoxTube.VideoCard"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="290"
|
||||||
|
d:DesignWidth="384">
|
||||||
|
|
||||||
|
<Grid Background="WhiteSmoke">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="75"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<StackPanel Background="Red" Padding="0,-35,0,0">
|
||||||
|
<Image Source="https://i.ytimg.com/vi/f8iOcZ43YT0/hqdefault.jpg"/>
|
||||||
|
</StackPanel>
|
||||||
|
<Grid Grid.Row="1">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="20"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="75"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="160"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Ellipse Grid.Column="0" Height="50" Width="50" Margin="10,-30,10,10" Fill="WhiteSmoke"/>
|
||||||
|
<PersonPicture Grid.Column="0" Height="46" Margin="10,-30,10,0" BorderBrush="White" BorderThickness="10" ProfilePicture="https://yt3.ggpht.com/-UOhOJaAitUc/AAAAAAAAAAI/AAAAAAAAAAA/z3WPfWpVuZw/s88-c-k-no-mo-rj-c0xffffff/photo.jpg"/>
|
||||||
|
|
||||||
|
<TextBlock Grid.Column="1" Text="IGP" Foreground="Gray" Margin="0,2,0,0" FontSize="12"/>
|
||||||
|
<TextBlock Grid.Column="2" Text="1:00:00 | 59 minute ago" HorizontalAlignment="Right" Foreground="Gray" Margin="0,2,2,0" FontSize="12"/>
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Grid.Row="1">
|
||||||
|
<TextBlock Text="Subnautica - SAY GOODBYE TO SUBNAUTICA! We're Back Home! - Subnautica Ending (Full Release Gameplay)" TextWrapping="WrapWholeWords" Margin="5" FontSize="14"/>
|
||||||
|
</StackPanel>
|
||||||
|
<!--<StackPanel Width="75" Padding="0" Grid.Row="0">
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
|
<TextBlock Text="This is veeery looong name of video lalala! It's not a " TextWrapping="WrapWholeWords"/>
|
||||||
|
</StackPanel>-->
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
public sealed partial class VideoCard : UserControl
|
||||||
|
{
|
||||||
|
public VideoCard()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<Page
|
||||||
|
x:Class="FoxTube.VideoGrid"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:FoxTube"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="384"/>
|
||||||
|
<ColumnDefinition Width="384"/>
|
||||||
|
<ColumnDefinition Width="384"/>
|
||||||
|
<ColumnDefinition Width="384"/>
|
||||||
|
<ColumnDefinition Width="384"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices.WindowsRuntime;
|
||||||
|
using Windows.Foundation;
|
||||||
|
using Windows.Foundation.Collections;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Controls;
|
||||||
|
using Windows.UI.Xaml.Controls.Primitives;
|
||||||
|
using Windows.UI.Xaml.Data;
|
||||||
|
using Windows.UI.Xaml.Input;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
using Windows.UI.Xaml.Navigation;
|
||||||
|
|
||||||
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
|
||||||
|
|
||||||
|
namespace FoxTube
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class VideoGrid : Page
|
||||||
|
{
|
||||||
|
public VideoGrid()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user