You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
6.2 KiB
122 lines
6.2 KiB
<UserControl x:Class="AIK.Views.MenuPages.Integral.IntegralRecordPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:AIK.Views.MenuPages.Integral"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<DropShadowEffect x:Key="CardShadow"
|
|
BlurRadius="8"
|
|
ShadowDepth="2"
|
|
Direction="270"
|
|
Opacity="0.15"
|
|
Color="#000000" />
|
|
<Style x:Key="RoundedButtonStyle" TargetType="Button">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="20"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#DBEAFE"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="#BFDBFE"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid Margin="24">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 标题栏 -->
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,20">
|
|
<Rectangle Width="4" Height="24" RadiusX="2" RadiusY="2" Fill="#2563EB" Margin="0,0,12,0"/>
|
|
<TextBlock Text="{DynamicResource IntegralRecord}"
|
|
FontSize="20"
|
|
FontWeight="Bold"
|
|
Foreground="#1E293B"/>
|
|
</StackPanel>
|
|
|
|
<!-- 列表容器 -->
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Template="{StaticResource MyScrollViewer}">
|
|
<StackPanel>
|
|
<ItemsControl x:Name="KeysList"
|
|
ItemsSource="{Binding Records}"
|
|
Background="Transparent">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<!-- 卡片容器 -->
|
|
<Border CornerRadius="10"
|
|
Background="White"
|
|
Padding="16"
|
|
Margin="16,8"
|
|
BorderThickness="0"
|
|
Effect="{StaticResource CardShadow}">
|
|
<!-- 可选阴影 -->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="70"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Text="{Binding Remark}"
|
|
FontSize="14"
|
|
FontWeight="SemiBold"
|
|
Foreground="Black"
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="NoWrap" />
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Fh}"
|
|
FontSize="16"
|
|
Foreground="#1D4ED8"
|
|
FontWeight="Bold"></TextBlock>
|
|
<TextBlock Text="{Binding Score}"
|
|
FontSize="16"
|
|
Foreground="#1D4ED8"
|
|
FontWeight="Bold"></TextBlock>
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="3"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding CraeteTime}"
|
|
FontSize="13"
|
|
Foreground="#64748B"
|
|
HorizontalAlignment="Right"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</Grid>
|
|
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<Button Content="{DynamicResource ViewMore}"
|
|
Visibility="{Binding IsShowLoadMore,Converter={StaticResource BoolToVisibilityConverter}}"
|
|
Command="{Binding LoadMoreCommand}"
|
|
Style="{StaticResource RoundedButtonStyle}"
|
|
Margin="0,16"
|
|
Padding="24,18"
|
|
HorizontalAlignment="Center"
|
|
Background="#EFF6FF"
|
|
Foreground="#2563EB"
|
|
BorderThickness="0"/>
|
|
<TextBlock Visibility="{Binding IsShowLoadMore,Converter={StaticResource BoolToVisibilityConverter},ConverterParameter=inverse}" Text="{Binding NotMoreTip}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</UserControl>
|
|
|