|
4 | 4 | xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
5 | 5 | xmlns:localconverters="using:Microsoft.Toolkit.Uwp.UI.Controls.ColorPickerConverters"
|
6 | 6 | xmlns:primitives="using:Microsoft.Toolkit.Uwp.UI.Controls.Primitives"
|
7 |
| - xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"> |
| 7 | + xmlns:ui="using:Microsoft.Toolkit.Uwp.UI" |
| 8 | + xmlns:winuiprimitives="using:Microsoft.UI.Xaml.Controls.Primitives"> |
8 | 9 |
|
9 | 10 | <SolidColorBrush x:Key="CheckerboardColor0">
|
10 | 11 | <SolidColorBrush.Color>
|
|
120 | 121 | Orientation="Vertical" />
|
121 | 122 | <!-- Keep in mind the spectrum is always HSV -->
|
122 | 123 | <!-- This must also not be named 'ColorSpectrum' to differentiate from the base class -->
|
123 |
| - <ColorSpectrum x:Name="ColorSpectrumControl" |
124 |
| - Grid.Row="0" |
125 |
| - Grid.RowSpan="2" |
126 |
| - Grid.Column="1" |
127 |
| - MinWidth="256" |
128 |
| - MinHeight="256" |
129 |
| - HorizontalAlignment="Stretch" |
130 |
| - VerticalAlignment="Stretch" |
131 |
| - AutomationProperties.Name="Third Dimension" |
132 |
| - Components="{TemplateBinding ColorSpectrumComponents}" |
133 |
| - MaxHue="{TemplateBinding MaxHue}" |
134 |
| - MaxSaturation="{TemplateBinding MaxSaturation}" |
135 |
| - MaxValue="{TemplateBinding MaxValue}" |
136 |
| - MinHue="{TemplateBinding MinHue}" |
137 |
| - MinSaturation="{TemplateBinding MinSaturation}" |
138 |
| - MinValue="{TemplateBinding MinValue}" |
139 |
| - Shape="{TemplateBinding ColorSpectrumShape}" /> |
| 124 | + <winuiprimitives:ColorSpectrum x:Name="ColorSpectrumControl" |
| 125 | + Grid.Row="0" |
| 126 | + Grid.RowSpan="2" |
| 127 | + Grid.Column="1" |
| 128 | + MinWidth="256" |
| 129 | + MinHeight="256" |
| 130 | + HorizontalAlignment="Stretch" |
| 131 | + VerticalAlignment="Stretch" |
| 132 | + AutomationProperties.Name="Third Dimension" |
| 133 | + Components="{TemplateBinding ColorSpectrumComponents}" |
| 134 | + MaxHue="{TemplateBinding MaxHue}" |
| 135 | + MaxSaturation="{TemplateBinding MaxSaturation}" |
| 136 | + MaxValue="{TemplateBinding MaxValue}" |
| 137 | + MinHue="{TemplateBinding MinHue}" |
| 138 | + MinSaturation="{TemplateBinding MinSaturation}" |
| 139 | + MinValue="{TemplateBinding MinValue}" |
| 140 | + Shape="{TemplateBinding ColorSpectrumShape}" /> |
140 | 141 | <primitives:ColorPickerSlider x:Name="ColorSpectrumAlphaSlider"
|
141 | 142 | Grid.Row="1"
|
142 | 143 | Grid.RowSpan="2"
|
|
0 commit comments