|
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | 9 | xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
10 | 10 | mc:Ignorable="d"> |
11 | | - <StackPanel Spacing="10" Margin="15"> |
| 11 | + <ScrollView> |
12 | 12 |
|
13 | | - <controls:SettingsCard |
14 | | - Header="整体外观" |
15 | | - Description="适用于新的选项卡、页面、对话框和其他菜单。"> |
16 | | - </controls:SettingsCard> |
| 13 | + <StackPanel Spacing="10" Margin="15"> |
| 14 | + <controls:SettingsCard |
| 15 | + Header="整体外观" |
| 16 | + Description="适用于新的选项卡、页面、对话框和其他菜单。"> |
| 17 | + </controls:SettingsCard> |
17 | 18 |
|
18 | | - <GridView Name="appearanceView" SelectionMode="Single" SelectionChanged="AppearanceChanged"> |
19 | | - <GridView.ItemContainerStyle> |
20 | | - <Style TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}"> |
21 | | - <Setter Property="Margin" Value="10"/> |
22 | | - </Style> |
23 | | - </GridView.ItemContainerStyle> |
24 | | - <StackPanel> |
25 | | - <Canvas Width="150" Height="100"> |
26 | | - <Polygon |
27 | | - Fill="Black" |
28 | | - Points="0,0,0,100,150,100"/> |
29 | | - <Polygon |
30 | | - Fill="White" |
31 | | - Points="0,0,150,0,150,100"/> |
32 | | - </Canvas> |
33 | | - <TextBlock Text="系统默认" Margin="10"/> |
34 | | - </StackPanel> |
| 19 | + <GridView Name="appearanceView" SelectionMode="Single" SelectionChanged="AppearanceChanged"> |
| 20 | + <GridView.ItemContainerStyle> |
| 21 | + <Style TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}"> |
| 22 | + <Setter Property="Margin" Value="10"/> |
| 23 | + </Style> |
| 24 | + </GridView.ItemContainerStyle> |
| 25 | + <StackPanel> |
| 26 | + <Canvas Width="150" Height="100"> |
| 27 | + <Polygon |
| 28 | + Fill="Black" |
| 29 | + Points="0,0,0,100,150,100"/> |
| 30 | + <Polygon |
| 31 | + Fill="White" |
| 32 | + Points="0,0,150,0,150,100"/> |
| 33 | + </Canvas> |
| 34 | + <TextBlock Text="系统默认" Margin="10"/> |
| 35 | + </StackPanel> |
35 | 36 |
|
36 | | - <StackPanel> |
37 | | - <Rectangle Width="150" Height="100" Fill="White"/> |
38 | | - <TextBlock Text="浅色" Margin="10"/> |
39 | | - </StackPanel> |
| 37 | + <StackPanel> |
| 38 | + <Rectangle Width="150" Height="100" Fill="White"/> |
| 39 | + <TextBlock Text="浅色" Margin="10"/> |
| 40 | + </StackPanel> |
40 | 41 |
|
41 | | - <StackPanel> |
42 | | - <Rectangle Width="150" Height="100" Fill="black"/> |
43 | | - <TextBlock Text="深色" Margin="10"/> |
44 | | - </StackPanel> |
45 | | - </GridView> |
| 42 | + <StackPanel> |
| 43 | + <Rectangle Width="150" Height="100" Fill="black"/> |
| 44 | + <TextBlock Text="深色" Margin="10"/> |
| 45 | + </StackPanel> |
| 46 | + </GridView> |
46 | 47 |
|
47 | | - <controls:SettingsCard |
48 | | - Header="在浏览器中显示 Windows 11 视觉效果" |
49 | | - Description="向浏览器添加 Mica 效果。此功能取决于你的设备和 Windows 设置。"> |
50 | | - <ToggleSwitch Name="showMicaSwitch" Toggled="MicaEffectChanged"/> |
51 | | - </controls:SettingsCard> |
| 48 | + <controls:SettingsCard |
| 49 | + Header="在浏览器中显示 Windows 11 视觉效果" |
| 50 | + Description="向浏览器添加 Mica 效果。此功能取决于你的设备和 Windows 设置。"> |
| 51 | + <ToggleSwitch Name="showMicaSwitch" Toggled="MicaEffectChanged"/> |
| 52 | + </controls:SettingsCard> |
52 | 53 |
|
53 | | - <TextBlock Text="自定义工具栏" Style="{ThemeResource FlyoutPickerTitleTextBlockStyle}" Margin="5,10,0,0"/> |
54 | | - |
55 | | - <ItemsControl x:Name="toolBarVisualView"> |
56 | | - <ItemsControl.ItemTemplate> |
57 | | - <DataTemplate x:DataType="local:ToolBarVisual"> |
58 | | - <controls:SettingsCard |
59 | | - Header="{x:Bind Description}"> |
60 | | - <ToggleSwitch IsOn="{x:Bind Visual}" Toggled="VisualChanged" /> |
61 | | - </controls:SettingsCard> |
62 | | - </DataTemplate> |
63 | | - </ItemsControl.ItemTemplate> |
64 | | - </ItemsControl> |
65 | | - </StackPanel> |
| 54 | + <TextBlock Text="自定义工具栏" Style="{ThemeResource FlyoutPickerTitleTextBlockStyle}" Margin="5,10,0,0"/> |
66 | 55 |
|
| 56 | + <ItemsControl x:Name="toolBarVisualView"> |
| 57 | + <ItemsControl.ItemTemplate> |
| 58 | + <DataTemplate x:DataType="local:ToolBarVisual"> |
| 59 | + <controls:SettingsCard |
| 60 | + Header="{x:Bind Description}"> |
| 61 | + <ToggleSwitch IsOn="{x:Bind Visual}" Toggled="VisualChanged" /> |
| 62 | + </controls:SettingsCard> |
| 63 | + </DataTemplate> |
| 64 | + </ItemsControl.ItemTemplate> |
| 65 | + </ItemsControl> |
| 66 | + </StackPanel> |
| 67 | + |
| 68 | + </ScrollView> |
67 | 69 | </Page> |
0 commit comments