10
10
<SolidColorBrush Color="{ThemeResource SystemChromeLowColor}" x:Key="SystemControlForegroundChromeLowBrush"/>
11
11
</Page.Resources>
12
12
13
- <Grid>
14
- <Grid.RowDefinitions>
15
- <RowDefinition Height="*" />
16
- <RowDefinition Height="*" />
17
- <RowDefinition Height="*" />
18
- <RowDefinition Height="*" />
19
- </Grid.RowDefinitions>
20
- <!-- Example 1 -->
21
- <StackPanel Grid.Row="0"
22
- Orientation="Vertical"
13
+ <ScrollViewer>
14
+ <StackPanel Orientation="Vertical"
23
15
HorizontalAlignment="Center"
24
- VerticalAlignment="Center"
25
16
Spacing="20">
17
+ <!-- Example 1 -->
26
18
<Border Background="{ThemeResource SystemChromeMediumColor}"
27
19
CornerRadius="4"
28
20
Height="100"
44
36
</Style>
45
37
</controls:ColorPickerButton.ColorPickerStyle>
46
38
</controls:ColorPickerButton>
47
- </StackPanel>
48
- <!-- Example 2 -->
49
- <StackPanel Grid.Row="1"
50
- Orientation="Vertical"
51
- HorizontalAlignment="Center"
52
- VerticalAlignment="Center"
53
- Spacing="20">
39
+ <!-- Example 2 -->
54
40
<Border Background="{ThemeResource SystemChromeMediumColor}"
55
41
CornerRadius="4"
56
42
Height="100"
72
58
</Style>
73
59
</controls:ColorPickerButton.ColorPickerStyle>
74
60
</controls:ColorPickerButton>
75
- </StackPanel>
76
- <!-- Example 3 -->
77
- <StackPanel Grid.Row="2"
78
- Orientation="Vertical"
79
- HorizontalAlignment="Center"
80
- VerticalAlignment="Center"
81
- Spacing="20">
61
+ <!-- Example 3 -->
82
62
<Border Background="{ThemeResource SystemChromeMediumColor}"
83
63
CornerRadius="4"
84
64
Height="100"
100
80
</Style>
101
81
</controls:ColorPickerButton.ColorPickerStyle>
102
82
</controls:ColorPickerButton>
103
- </StackPanel>
104
- <!-- Example 4 -->
105
- <StackPanel Grid.Row="3"
106
- Orientation="Vertical"
107
- HorizontalAlignment="Center"
108
- VerticalAlignment="Center"
109
- Spacing="20">
83
+ <!-- Example 4 -->
110
84
<Border Background="{ThemeResource SystemChromeMediumColor}"
111
85
CornerRadius="4"
112
86
Height="100"
130
104
</Style>
131
105
</controls:ColorPickerButton.ColorPickerStyle>
132
106
</controls:ColorPickerButton>
107
+ <!-- Example 5 -->
108
+ <Border Background="{ThemeResource SystemChromeMediumColor}"
109
+ CornerRadius="4"
110
+ Height="100"
111
+ Width="300"
112
+ Padding="10">
113
+ <TextBlock TextAlignment="Center"
114
+ VerticalAlignment="Center">
115
+ Ring-shaped spectrum <LineBreak />
116
+ Alpha channel enabled <LineBreak />
117
+ Only Color Palette Shown
118
+ </TextBlock>
119
+ </Border>
120
+ <controls:ColorPickerButton x:Name="ColorPickerButton5"
121
+ SelectedColor="Teal">
122
+ <controls:ColorPickerButton.ColorPickerStyle>
123
+ <Style TargetType="controls:ColorPicker">
124
+ <Setter Property="ColorSpectrumShape" Value="Ring"/>
125
+ <Setter Property="IsAlphaEnabled" Value="True"/>
126
+ <Setter Property="IsHexInputVisible" Value="True"/>
127
+ <Setter Property="IsColorSpectrumVisible" Value="False"/>
128
+ <Setter Property="IsColorPaletteVisible" Value="True"/>
129
+ <Setter Property="IsColorChannelTextInputVisible" Value="False"/>
130
+ </Style>
131
+ </controls:ColorPickerButton.ColorPickerStyle>
132
+ </controls:ColorPickerButton>
133
133
</StackPanel>
134
- <!-- Example 5 -->
135
- <StackPanel Grid.Row="3"
136
- Orientation="Vertical"
137
- HorizontalAlignment="Center"
138
- VerticalAlignment="Center"
139
- Spacing="20">
140
- <Border Background="{ThemeResource SystemChromeMediumColor}"
141
- CornerRadius="4"
142
- Height="100"
143
- Width="300"
144
- Padding="10">
145
- <TextBlock TextAlignment="Center"
146
- VerticalAlignment="Center">
147
- Ring-shaped spectrum <LineBreak />
148
- Alpha channel enabled <LineBreak />
149
- Only Color Palette Shown
150
- </TextBlock>
151
- </Border>
152
- <controls:ColorPickerButton x:Name="ColorPickerButton5"
153
- SelectedColor="Teal">
154
- <controls:ColorPickerButton.ColorPickerStyle>
155
- <Style TargetType="controls:ColorPicker">
156
- <Setter Property="ColorSpectrumShape"
157
- Value="Ring"/>
158
- <Setter Property="IsAlphaEnabled"
159
- Value="True"/>
160
- <Setter Property="IsHexInputVisible"
161
- Value="True"/>
162
- <Setter Property="IsColorSpectrumVisible"
163
- Value="False"/>
164
- <Setter Property="IsColorPaletteVisible"
165
- Value="True"/>
166
- <Setter Property="IsColorChannelTextInputVisible"
167
- Value="False"/>
168
- </Style>
169
- </controls:ColorPickerButton.ColorPickerStyle>
170
- </controls:ColorPickerButton>
171
- </StackPanel>
172
- </Grid>
134
+ </ScrollViewer>
173
135
</Page>
0 commit comments