1
+ <UserControl
2
+ x : Class =" Atc.Wpf.Sample.SamplesWpfControls.ColorControls.AdvancedColorPickerView"
3
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5
+ xmlns : atc =" https://github.com/atc-net/atc-wpf/tree/main/schemas"
6
+ xmlns : colorControls =" clr-namespace:Atc.Wpf.Controls.ColorControls;assembly=Atc.Wpf.Controls"
7
+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
8
+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
9
+ d : DesignHeight =" 750"
10
+ d : DesignWidth =" 850"
11
+ mc : Ignorable =" d" >
12
+
13
+ <atc : AutoGrid Columns =" *" Rows =" Auto,*" >
14
+
15
+ <GroupBox
16
+ Margin =" 0,0,0,10"
17
+ Padding =" 10"
18
+ Header =" Features" >
19
+ <atc : GridEx Columns =" Auto,10,150,10,Auto,10,Auto,10,Auto" >
20
+ <TextBlock
21
+ Grid.Column=" 0"
22
+ VerticalAlignment =" Center"
23
+ FontSize =" 18"
24
+ Text =" Color:" />
25
+ <Rectangle
26
+ Grid.Column=" 2"
27
+ Width =" 100"
28
+ Height =" 32"
29
+ Fill =" {Binding ElementName=UcAdvancedColorPicker, Path=ColorAsBrush}" />
30
+ <WrapPanel Grid.Column=" 4" Orientation =" Vertical" >
31
+ <atc : LabelCheckBox
32
+ HideAreas =" All"
33
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowSaturationBrightnessPicker}"
34
+ LabelText =" Show Saturation/Brightness"
35
+ LabelWidthNumber =" 150"
36
+ LabelWidthSizeDefinition =" Pixel" />
37
+ <atc : LabelCheckBox
38
+ HideAreas =" All"
39
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowAvailableColors}"
40
+ LabelText =" Show Advanced Colors"
41
+ LabelWidthNumber =" 150"
42
+ LabelWidthSizeDefinition =" Pixel" />
43
+ <atc : LabelCheckBox
44
+ HideAreas =" All"
45
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowStandardColors}"
46
+ LabelText =" Show Standard Colors"
47
+ LabelWidthNumber =" 150"
48
+ LabelWidthSizeDefinition =" Pixel" />
49
+ </WrapPanel >
50
+ <WrapPanel Grid.Column=" 6" Orientation =" Vertical" >
51
+ <atc : LabelCheckBox
52
+ HideAreas =" All"
53
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowHueSlider}"
54
+ LabelText =" Show Hue-Slider"
55
+ LabelWidthNumber =" 150"
56
+ LabelWidthSizeDefinition =" Pixel" />
57
+ <atc : LabelCheckBox
58
+ HideAreas =" All"
59
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowTransparencySlider}"
60
+ LabelText =" Show Transparency-Slider"
61
+ LabelWidthNumber =" 150"
62
+ LabelWidthSizeDefinition =" Pixel" />
63
+ </WrapPanel >
64
+ <WrapPanel Grid.Column=" 8" Orientation =" Vertical" >
65
+ <atc : LabelCheckBox
66
+ HideAreas =" All"
67
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowBeforeAfterColorResult}"
68
+ LabelText =" Show Before/After"
69
+ LabelWidthNumber =" 150"
70
+ LabelWidthSizeDefinition =" Pixel" />
71
+ <atc : LabelCheckBox
72
+ HideAreas =" All"
73
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowHsv}"
74
+ LabelText =" Show HSV"
75
+ LabelWidthNumber =" 150"
76
+ LabelWidthSizeDefinition =" Pixel" />
77
+ <atc : LabelCheckBox
78
+ HideAreas =" All"
79
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowRgba}"
80
+ LabelText =" Show RGBA"
81
+ LabelWidthNumber =" 150"
82
+ LabelWidthSizeDefinition =" Pixel" />
83
+ <atc : LabelCheckBox
84
+ HideAreas =" All"
85
+ IsChecked =" {Binding ElementName=UcAdvancedColorPicker, Path=ShowArgb}"
86
+ LabelText =" Show ARGB"
87
+ LabelWidthNumber =" 150"
88
+ LabelWidthSizeDefinition =" Pixel" />
89
+ </WrapPanel >
90
+ </atc : GridEx >
91
+ </GroupBox >
92
+
93
+ <GroupBox Header =" Usage" >
94
+ <ScrollViewer >
95
+
96
+ <colorControls : AdvancedColorPicker x : Name =" UcAdvancedColorPicker" />
97
+
98
+ </ScrollViewer >
99
+ </GroupBox >
100
+ </atc : AutoGrid >
101
+
102
+ </UserControl >
0 commit comments