2024-07-14 11:24:10 +00:00
|
|
|
<Application
|
|
|
|
x:Class="RustTools.App"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2024-08-03 11:49:28 +00:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="using:RustTools.Views"
|
|
|
|
xmlns:zy="using:RustTools.DataList">
|
2024-07-14 11:24:10 +00:00
|
|
|
<Application.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
|
|
|
<ResourceDictionary Source="/Styles/FontSizes.xaml" />
|
|
|
|
<ResourceDictionary Source="/Styles/Thickness.xaml" />
|
|
|
|
<ResourceDictionary Source="/Styles/TextBlock.xaml" />
|
2024-08-03 11:49:28 +00:00
|
|
|
<ResourceDictionary Source="/Styles/ItemView.xaml" />
|
2024-08-05 11:38:55 +00:00
|
|
|
<ResourceDictionary Source="/Styles/TitleSubtitleControlStyle.xaml" />
|
2024-07-14 11:24:10 +00:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
2024-08-03 11:49:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- 用于动态界面的关注用户视图 -->
|
|
|
|
|
|
|
|
<DataTemplate x:Key="ConCernItem">
|
2024-08-05 11:38:55 +00:00
|
|
|
|
|
|
|
<StackPanel Padding="5" Orientation="Horizontal">
|
|
|
|
<Border Margin="0,0,0,0" CornerRadius="9">
|
2024-08-03 11:49:28 +00:00
|
|
|
<Image
|
|
|
|
Width="56"
|
|
|
|
Height="56"
|
2024-08-05 11:38:55 +00:00
|
|
|
VerticalAlignment="Center"
|
2024-08-03 11:49:28 +00:00
|
|
|
Source="{Binding HeadIcon}"
|
|
|
|
Stretch="UniformToFill" />
|
2024-08-05 11:38:55 +00:00
|
|
|
</Border>
|
|
|
|
<TextBlock
|
|
|
|
Margin="3,0,0,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Style="{ThemeResource SubtitleTextBlockStyle}"
|
|
|
|
Text="{Binding UserName}" />
|
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
<!-- 模组列表的视图 -->
|
|
|
|
<DataTemplate x:Key="HomePageListItem">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<Border
|
|
|
|
Width="56"
|
|
|
|
Height="56"
|
|
|
|
BorderBrush="White"
|
|
|
|
BorderThickness="0"
|
|
|
|
CornerRadius="9">
|
|
|
|
<Border.Background>
|
|
|
|
<ImageBrush ImageSource="{Binding Icon}" Stretch="UniformToFill" />
|
|
|
|
</Border.Background>
|
|
|
|
</Border>
|
|
|
|
<StackPanel Margin="10,10,10,10" Orientation="Vertical">
|
|
|
|
<TextBlock Style="{StaticResource SubtitleTextBlockStyle}" Text="{Binding Name}" />
|
2024-08-03 11:49:28 +00:00
|
|
|
<TextBlock
|
2024-08-05 11:38:55 +00:00
|
|
|
Width="500"
|
|
|
|
MaxLines="2"
|
|
|
|
Style="{StaticResource BodyStrongTextBlockStyle}"
|
|
|
|
Text="{Binding Description}"
|
|
|
|
TextTrimming="CharacterEllipsis"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="{Binding UpdateTime}" />
|
|
|
|
<TextBlock
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
|
|
Text="{Binding CoinNumber}" />
|
|
|
|
<TextBlock Style="{StaticResource BodyTextBlockStyle}" Text="次下载" />
|
|
|
|
</StackPanel>
|
2024-08-03 11:49:28 +00:00
|
|
|
</StackPanel>
|
2024-08-05 11:38:55 +00:00
|
|
|
|
|
|
|
</StackPanel>
|
2024-08-03 11:49:28 +00:00
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
|
2024-07-14 11:24:10 +00:00
|
|
|
</ResourceDictionary>
|
|
|
|
</Application.Resources>
|
|
|
|
</Application>
|