WIn_RustTools/RustTools/Views/RankingPage.xaml

50 lines
1.8 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
2024-07-15 05:22:53 +00:00
<Page
x:Class="RustTools.Views.RankingPage"
2024-07-14 11:24:10 +00:00
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"
2024-07-14 11:24:10 +00:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
SizeChanged="Page_SizeChanged"
mc:Ignorable="d">
2024-07-15 05:22:53 +00:00
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<AppBarButton
Grid.Row="0"
Grid.Column="1"
Margin="0,3,9,0"
Icon="Sort"
IsCompact="False"
Label="下载量"
ToolTipService.ToolTip="Sort">
<AppBarButton.Flyout>
<MenuFlyout>
<MenuFlyoutItem Tag="rating" Text="下载量" />
<MenuFlyoutItem Tag="match" Text="投币数" />
<MenuFlyoutItem Tag="distance" Text="单位数" />
<MenuFlyoutItem Tag="d" Text="更新次数" />
</MenuFlyout>
</AppBarButton.Flyout>
</AppBarButton>
2024-07-14 11:24:10 +00:00
<ListView
x:Name="list"
Grid.Row="1"
Padding="0,0,16,0"
HorizontalAlignment="Stretch"
IsItemClickEnabled="True"
ItemTemplate="{StaticResource HomePageListItem}"
ItemsSource="{x:Bind ViewModel.RankingList}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
SelectionMode="None" />
2024-07-14 11:24:10 +00:00
</Grid>
</Page>