You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// ColorPicker is a WPF UserControl that provides an interactive color selection interface using a hue ring and saturation/value triangle. It supports RGB and Hex input/output, and raises events when the color changes. The control is designed to be visually intuitive and responsive, allowing users to easily select colors while providing real-time feedback through property bindings and events.
/// Initializes a new instance of the <see cref="ColorPicker"/> class.
61
+
/// Initializes a new instance of the <see cref="T:CommonControls.Images.ColorPicker"/> class.
35
62
/// </summary>
36
63
publicColorPicker()
37
64
{
38
65
InitializeComponent();
39
66
}
40
67
68
+
/// <inheritdoc />
41
69
/// <summary>
42
-
/// Initializes a new instance of the <see cref="ColorPicker"/> class.
70
+
/// Initializes a new instance of the <see cref="T:CommonControls.Images.ColorPicker"/> class.
43
71
/// </summary>
44
72
/// <param name="r">The r.</param>
45
73
/// <param name="g">The g.</param>
@@ -53,7 +81,8 @@ public ColorPicker()
53
81
Alpha=alpha;
54
82
55
83
// This is the trigger that will finally make it draw
56
-
this.SizeChanged+=(s,e)=>{
84
+
this.SizeChanged+=(s,e)=>
85
+
{
57
86
if(e.NewSize.Width>0&&e.NewSize.Height>0)
58
87
{
59
88
RedrawAsync();
@@ -62,6 +91,7 @@ public ColorPicker()
62
91
};
63
92
}
64
93
94
+
/// <inheritdoc />
65
95
/// <summary>
66
96
/// When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
0 commit comments