-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathColorPickerSample.xaml
24 lines (23 loc) · 1.61 KB
/
ColorPickerSample.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="ColorPickerExperiment.Samples.ColorPickerSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:ColorPickerExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid>
<controls:ColorPicker HorizontalAlignment="Center"
VerticalAlignment="Top"
ColorSpectrumShape="{x:Bind local:ColorPickerSample.ConvertStringToColorSpectrumShape(SpectrumShape), Mode=OneWay}"
IsAlphaEnabled="{x:Bind AlphaEnabled, Mode=OneWay}"
IsAlphaSliderVisible="{x:Bind AlphaSlider, Mode=OneWay}"
IsColorChannelTextInputVisible="{x:Bind ColorChannel, Mode=OneWay}"
IsColorPaletteVisible="{x:Bind ColorPalette, Mode=OneWay}"
IsColorSliderVisible="{x:Bind ColorSlider, Mode=OneWay}"
IsColorSpectrumVisible="{x:Bind SpectrumVisible, Mode=OneWay}"
ShowAccentColors="{x:Bind AccentColors, Mode=OneWay}"
Color="LightBlue" />
</Grid>
</Page>