WIn_RustTools/RustTools/Views/RankingPage.xaml

62 lines
2.3 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"
2024-08-17 23:27:24 +00:00
xmlns:viewmodels="using:RustTools.ViewModels"
d:DataContext="{d:DesignInstance Type=viewmodels:RankingViewModel}"
mc:Ignorable="d">
2024-07-15 05:22:53 +00:00
<Grid>
<Grid.RowDefinitions>
2024-08-22 23:59:16 +00:00
<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"
2024-08-26 09:41:33 +00:00
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>
2024-07-14 11:24:10 +00:00
<ListView
x:Name="list"
Grid.Row="1"
2024-08-22 23:59:16 +00:00
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" />
2024-07-14 11:24:10 +00:00
</Grid>
</Page>