2025-04-24 20:56:44 +08:00
|
|
|
<Page
|
|
|
|
|
x:Class="WPFluent.Gallery.Views.Pages.SettingsPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:helpers="clr-namespace:WPFluent.Gallery.Helpers"
|
|
|
|
|
xmlns:local="clr-namespace:WPFluent.Gallery.Views.Pages"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
2025-07-11 09:20:23 +08:00
|
|
|
xmlns:vm="clr-namespace:WPFluent.Gallery.ViewModels.Pages"
|
2025-05-05 17:04:06 +08:00
|
|
|
mc:Ignorable="d"
|
2025-07-11 09:20:23 +08:00
|
|
|
d:DataContext="{d:DesignInstance vm:SettingsViewModel,
|
2025-04-24 20:56:44 +08:00
|
|
|
IsDesignTimeCreatable=False}"
|
2025-05-05 17:04:06 +08:00
|
|
|
Title="Settings Page">
|
2025-04-24 20:56:44 +08:00
|
|
|
<StackPanel Margin="0,0,0,24">
|
|
|
|
|
<ui:TextBlock
|
|
|
|
|
Margin="0,0,0,8"
|
|
|
|
|
FontTypography="BodyStrong"
|
2025-05-05 17:04:06 +08:00
|
|
|
Text="外观 & 行为" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Color24}">
|
|
|
|
|
<ui:CardControl.Header>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<ui:TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
FontTypography="Body"
|
2025-05-05 17:04:06 +08:00
|
|
|
Text="应用程序主题" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:TextBlock
|
|
|
|
|
Grid.Row="1"
|
2025-05-05 17:04:06 +08:00
|
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Text="选择主题" />
|
2025-04-24 20:56:44 +08:00
|
|
|
</Grid>
|
|
|
|
|
</ui:CardControl.Header>
|
|
|
|
|
<ComboBox
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
MinWidth="200"
|
2025-07-11 09:20:23 +08:00
|
|
|
SelectedIndex="{Binding CurrentApplicationTheme, Converter={StaticResource ThemeToIndexConverter}, Mode=TwoWay}">
|
2025-04-24 20:56:44 +08:00
|
|
|
<ComboBoxItem Content="Light" />
|
|
|
|
|
<ComboBoxItem Content="Dark" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</ui:CardControl>
|
|
|
|
|
|
|
|
|
|
<ui:TextBlock
|
|
|
|
|
Margin="0,24,0,8"
|
|
|
|
|
FontTypography="BodyStrong"
|
|
|
|
|
Text="About" />
|
|
|
|
|
<ui:CardExpander ContentPadding="0" Icon="{ui:ImageIcon 'pack://application:,,,/WPFluent.Gallery;component/wpfui.png', Width=38, Height=35}">
|
|
|
|
|
<ui:CardExpander.Header>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<ui:TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
FontTypography="Body"
|
2025-05-05 17:04:06 +08:00
|
|
|
Text="WPFluent" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.RowSpan="2"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Margin="0,0,16,0"
|
|
|
|
|
VerticalAlignment="Center"
|
2025-05-05 17:04:06 +08:00
|
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
2025-07-11 09:20:23 +08:00
|
|
|
Text="{Binding AppVersion, Mode=OneWay}" />
|
2025-05-05 17:04:06 +08:00
|
|
|
<ui:TextBlock
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Text="© 2025 ShrlAlgo.cn | ShrlAlgo & WPF UI 贡献者" />
|
2025-04-24 20:56:44 +08:00
|
|
|
</Grid>
|
|
|
|
|
</ui:CardExpander.Header>
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<Grid Margin="16">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2025-05-05 17:04:06 +08:00
|
|
|
<TextBlock Grid.Column="0" Text="克隆仓库" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Column="1"
|
2025-05-05 17:04:06 +08:00
|
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Text="git clone https://github.com/ShrlAlgo/WPFluent.git" />
|
2025-04-24 20:56:44 +08:00
|
|
|
</Grid>
|
|
|
|
|
<ui:Anchor
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
BorderThickness="0,1,0,0"
|
|
|
|
|
CornerRadius="0"
|
2025-05-05 17:04:06 +08:00
|
|
|
NavigateUri="https://github.com/ShrlAlgo/WPFluent/issues/new/choose"
|
|
|
|
|
Padding="16">
|
2025-04-24 20:56:44 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2025-05-05 17:04:06 +08:00
|
|
|
<TextBlock Grid.Column="0" Text="提交bug或请求示例" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:SymbolIcon Grid.Column="1" Symbol="Link24" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</ui:Anchor>
|
|
|
|
|
<ui:Anchor
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
BorderThickness="0,1,0,1"
|
|
|
|
|
CornerRadius="0"
|
2025-05-05 17:04:06 +08:00
|
|
|
NavigateUri="https://www.ShrlAlgo.cn"
|
|
|
|
|
Padding="16">
|
2025-04-24 20:56:44 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2025-05-05 17:04:06 +08:00
|
|
|
<TextBlock Grid.Column="0" Text="查看文档" />
|
2025-04-24 20:56:44 +08:00
|
|
|
<ui:SymbolIcon Grid.Column="1" Symbol="Link24" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</ui:Anchor>
|
2025-07-11 09:20:23 +08:00
|
|
|
<TextBlock Margin="16" Text="{Binding AppVersion, Mode=OneWay}" />
|
2025-04-24 20:56:44 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</ui:CardExpander>
|
|
|
|
|
</StackPanel>
|
2025-05-05 17:04:06 +08:00
|
|
|
</Page>
|