83 lines
4.6 KiB
XML
83 lines
4.6 KiB
XML
<Page
|
|
x:Class="FoxTube.Search"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:FoxTube"
|
|
xmlns:pages="using:FoxTube.Pages"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:controls="using:FoxTube.Controls"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Name="grid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<ScrollViewer>
|
|
<StackPanel Margin="10">
|
|
<TextBlock Name="searchTerm" Text="Search results for: [searchTerm]" FontSize="28"/>
|
|
<TextBlock Name="resultsCount" Text="Found: [resultCount] item(s)" FontSize="14" Foreground="Gray"/>
|
|
|
|
<HyperlinkButton Name="toggleFilters" Click="toggleFilters_Click" Content="Show filters " FontFamily="Default, Segoe MDL2 Assets" Visibility="Visible"/>
|
|
<StackPanel Name="filters" Visibility="Collapsed">
|
|
<GridView Padding="5" SelectionMode="None">
|
|
<ComboBox Name="order" Header="Sort by" Width="150" SelectedIndex="0">
|
|
<ComboBoxItem Content="Relevance"/>
|
|
<ComboBoxItem Content="Upload date"/>
|
|
<ComboBoxItem Content="View count"/>
|
|
<ComboBoxItem Content="Rating"/>
|
|
<ComboBoxItem Content="Title"/>
|
|
</ComboBox>
|
|
<ComboBox Name="type" Header="Type" Width="150" SelectedIndex="0" SelectionChanged="type_SelectionChanged">
|
|
<ComboBoxItem Content="All"/>
|
|
<ComboBoxItem Content="Video"/>
|
|
<ComboBoxItem Content="Channel"/>
|
|
<ComboBoxItem Content="Playlist"/>
|
|
</ComboBox>
|
|
<ComboBox Name="date" Header="Upload date" Width="150" SelectedIndex="0">
|
|
<ComboBoxItem Content="Anytime"/>
|
|
<ComboBoxItem Content="Last hour"/>
|
|
<ComboBoxItem Content="Today"/>
|
|
<ComboBoxItem Content="This week"/>
|
|
<ComboBoxItem Content="This month"/>
|
|
<ComboBoxItem Content="This year"/>
|
|
</ComboBox>
|
|
<ComboBox Visibility="Collapsed" Name="duration" Header="Duration" Width="150" SelectedIndex="0">
|
|
<ComboBoxItem Content="Any"/>
|
|
<ComboBoxItem Content="Short (< 4 minutes)"/>
|
|
<ComboBoxItem Content="Medium"/>
|
|
<ComboBoxItem Content="Long (> 20 minutes)"/>
|
|
</ComboBox>
|
|
</GridView>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Visibility="Collapsed" Content="Features" Name="featBtn" Margin="10,0,0,10">
|
|
<Button.Flyout>
|
|
<Flyout>
|
|
<ListView Name="features" SelectionMode="Multiple" Header="Features">
|
|
<TextBlock Text="HD"/>
|
|
<TextBlock Text="3D"/>
|
|
<TextBlock Text="Subtitles/CC"/>
|
|
<TextBlock Text="Live"/>
|
|
<TextBlock Text="Creative Commons"/>
|
|
</ListView>
|
|
</Flyout>
|
|
</Button.Flyout>
|
|
</Button>
|
|
<Button Content="Apply" Margin="10,0,0,10" Click="AppBarButton_Click"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<pages:VideoGrid/>
|
|
<controls:ShowMore Clicked="more_Clicked"/>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<CommandBar Grid.Row="1" DefaultLabelPosition="Right">
|
|
<AppBarButton Label="Open in browser" Icon="Globe" Name="inBrowser" Click="inBrowser_Click" IsEnabled="False"/>
|
|
<AppBarButton Label="Refresh" Icon="Refresh" Click="AppBarButton_Click"/>
|
|
</CommandBar>
|
|
|
|
<local:LoadingPage Grid.RowSpan="2" Visibility="Collapsed" RefreshPage="AppBarButton_Click"/>
|
|
</Grid>
|
|
</Page>
|