private static void OnSelectedColorChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ColorCanvas colorCanvas = o as ColorCanvas; if (colorCanvas != null) { colorCanvas.OnSelectedColorChanged((Color?)e.OldValue, (Color?)e.NewValue); } }
private static void OnHexadecimalStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ColorCanvas colorCanvas = o as ColorCanvas; if (colorCanvas != null) { colorCanvas.OnHexadecimalStringChanged((string)e.OldValue, (string)e.NewValue); } }
private static void OnUsingAlphaChannelPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ColorCanvas colorCanvas = o as ColorCanvas; if (colorCanvas != null) { colorCanvas.OnUsingAlphaChannelChanged(); } }
private static void OnVChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ColorCanvas colorCanvas = d as ColorCanvas; if (colorCanvas != null) { colorCanvas.OnVChanged((double)e.OldValue, (double)e.NewValue); } }