整理控件库
This commit is contained in:
@@ -8,16 +8,15 @@
|
||||
xmlns:local="clr-namespace:WPFluent.Gallery.Views.Pages"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Title="Settings Page"
|
||||
controls:PageControlDocumentation.Show="False"
|
||||
mc:Ignorable="d"
|
||||
d:DataContext="{d:DesignInstance local:SettingsPage,
|
||||
IsDesignTimeCreatable=False}"
|
||||
mc:Ignorable="d">
|
||||
Title="Settings Page">
|
||||
<StackPanel Margin="0,0,0,24">
|
||||
<ui:TextBlock
|
||||
Margin="0,0,0,8"
|
||||
FontTypography="BodyStrong"
|
||||
Text="Appearance & behavior" />
|
||||
Text="外观 & 行为" />
|
||||
<ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon Color24}">
|
||||
<ui:CardControl.Header>
|
||||
<Grid>
|
||||
@@ -28,11 +27,11 @@
|
||||
<ui:TextBlock
|
||||
Grid.Row="0"
|
||||
FontTypography="Body"
|
||||
Text="App theme" />
|
||||
Text="应用程序主题" />
|
||||
<ui:TextBlock
|
||||
Grid.Row="1"
|
||||
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}"
|
||||
Text="Select which app theme to display" />
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="选择主题" />
|
||||
</Grid>
|
||||
</ui:CardControl.Header>
|
||||
<ComboBox
|
||||
@@ -41,25 +40,6 @@
|
||||
SelectedIndex="{Binding ViewModel.CurrentApplicationTheme, Converter={StaticResource ThemeToIndexConverter}, Mode=TwoWay}">
|
||||
<ComboBoxItem Content="Light" />
|
||||
<ComboBoxItem Content="Dark" />
|
||||
<ComboBoxItem Content="High Contrast" />
|
||||
</ComboBox>
|
||||
</ui:CardControl>
|
||||
|
||||
<ui:CardControl Margin="0,0,0,12" Icon="{ui:SymbolIcon AlignSpaceEvenlyVertical20}">
|
||||
<ui:CardControl.Header>
|
||||
<ui:TextBlock
|
||||
Grid.Row="0"
|
||||
FontTypography="Body"
|
||||
Text="Navigation style" />
|
||||
</ui:CardControl.Header>
|
||||
<ComboBox
|
||||
Grid.Column="1"
|
||||
MinWidth="200"
|
||||
SelectedIndex="{Binding ViewModel.CurrentApplicationNavigationStyle, Converter={StaticResource PaneDisplayModeToIndexConverter}, Mode=TwoWay}">
|
||||
<ComboBoxItem Content="Left compact" />
|
||||
<ComboBoxItem Content="Fluent" />
|
||||
<ComboBoxItem Content="Top" />
|
||||
<ComboBoxItem Content="Bottom" />
|
||||
</ComboBox>
|
||||
</ui:CardControl>
|
||||
|
||||
@@ -82,20 +62,20 @@
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
FontTypography="Body"
|
||||
Text="WPF UI" />
|
||||
<ui:TextBlock
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}"
|
||||
Text="© 2025 lepo.co | Leszek Pomianowski & WPF UI Contributors" />
|
||||
Text="WPFluent" />
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,16,0"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="{Binding ViewModel.AppVersion, Mode=OneWay}" />
|
||||
<ui:TextBlock
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="© 2025 ShrlAlgo.cn | ShrlAlgo & WPF UI 贡献者" />
|
||||
</Grid>
|
||||
</ui:CardExpander.Header>
|
||||
<StackPanel>
|
||||
@@ -104,45 +84,45 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="To clone this repository" />
|
||||
<TextBlock Grid.Column="0" Text="克隆仓库" />
|
||||
<TextBlock
|
||||
Grid.Column="1"
|
||||
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}"
|
||||
Text="git clone https://github.com/lepoco/wpfui.git" />
|
||||
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
||||
Text="git clone https://github.com/ShrlAlgo/WPFluent.git" />
|
||||
</Grid>
|
||||
<ui:Anchor
|
||||
Margin="0"
|
||||
Padding="16"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
Background="Transparent"
|
||||
BorderThickness="0,1,0,0"
|
||||
CornerRadius="0"
|
||||
NavigateUri="https://github.com/lepoco/wpfui/issues/new/choose">
|
||||
NavigateUri="https://github.com/ShrlAlgo/WPFluent/issues/new/choose"
|
||||
Padding="16">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="File a bug or request a new sample" />
|
||||
<TextBlock Grid.Column="0" Text="提交bug或请求示例" />
|
||||
<ui:SymbolIcon Grid.Column="1" Symbol="Link24" />
|
||||
</Grid>
|
||||
</ui:Anchor>
|
||||
<ui:Anchor
|
||||
Margin="0"
|
||||
Padding="16"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
Background="Transparent"
|
||||
BorderThickness="0,1,0,1"
|
||||
CornerRadius="0"
|
||||
NavigateUri="https://wpfui.lepo.co/">
|
||||
NavigateUri="https://www.ShrlAlgo.cn"
|
||||
Padding="16">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Column="0" Text="Check out the docs" />
|
||||
<TextBlock Grid.Column="0" Text="查看文档" />
|
||||
<ui:SymbolIcon Grid.Column="1" Symbol="Link24" />
|
||||
</Grid>
|
||||
</ui:Anchor>
|
||||
@@ -150,4 +130,4 @@
|
||||
</StackPanel>
|
||||
</ui:CardExpander>
|
||||
</StackPanel>
|
||||
</Page>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user