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
@@ -54,7 +56,7 @@ public sealed partial class ColorPicker : INotifyPropertyChanged
54
56
/// <summary>
55
57
/// Occurs when [color changed].
56
58
/// </summary>
57
-
publiceventDelegateColorColorChanged;
59
+
publiceventDelegateColor?ColorChanged;
58
60
59
61
/// <inheritdoc />
60
62
/// <summary>
@@ -81,13 +83,15 @@ public ColorPicker()
81
83
Alpha=alpha;
82
84
83
85
// This is the trigger that will finally make it draw
84
-
this.SizeChanged+=(s,e)=>
86
+
SizeChanged+=(s,e)=>
85
87
{
86
-
if(e.NewSize.Width>0&&e.NewSize.Height>0)
88
+
if(!(e.NewSize.Width>0)||!(e.NewSize.Height>0))
87
89
{
88
-
RedrawAsync();
89
-
UpdateCursors();
90
+
return;
90
91
}
92
+
93
+
RedrawAsync();
94
+
UpdateCursors();
91
95
};
92
96
}
93
97
@@ -96,7 +100,7 @@ public ColorPicker()
96
100
/// 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.
97
101
/// </summary>
98
102
/// <param name="drawingContext">The drawing instructions for a specific element. This context is provided to the layout system.</param>
0 commit comments