WIn_RustTools/RustTools/Views/RankingPage.xaml

62 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Page
x:Class="RustTools.Views.RankingPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:RustTools.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewmodels="using:RustTools.ViewModels"
d:DataContext="{d:DesignInstance Type=viewmodels:RankingViewModel}"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<AppBarButton
Grid.Row="0"
Grid.Column="1"
Icon="Sort"
IsCompact="False"
Label="下载量"
ToolTipService.ToolTip="Sort">
<AppBarButton.Flyout>
<MenuFlyout>
<MenuFlyoutItem
Click="MenuFlyoutItem_Click"
Tag="downloadNumber"
Text="下载量" />
<MenuFlyoutItem
Click="MenuFlyoutItem_Click"
Tag="coinNumber"
Text="投币数" />
<MenuFlyoutItem
Click="MenuFlyoutItem_Click"
Tag="unitNumber"
Text="单位数" />
<MenuFlyoutItem
Click="MenuFlyoutItem_Click"
Tag="updateNumber"
Text="更新次数" />
</MenuFlyout>
</AppBarButton.Flyout>
</AppBarButton>
<ListView
x:Name="list"
Grid.Row="1"
Margin="0,0,0,9"
Padding="0,0,16,0"
HorizontalAlignment="Stretch"
IsItemClickEnabled="True"
ItemTemplate="{StaticResource HomePageListItem}"
ItemsSource="{x:Bind ViewModel.RankingList}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
SelectionMode="None" />
</Grid>
</Page>