Beispiel #1
0
        private static void OnUsingAlphaChannelPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnUsingAlphaChannelChanged();
            }
        }
Beispiel #2
0
        private static void OnSelectedColorChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnSelectedColorChanged(( Color? )e.OldValue, ( Color? )e.NewValue);
            }
        }
Beispiel #3
0
        private static void OnHexadecimalStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnHexadecimalStringChanged(( string )e.OldValue, ( string )e.NewValue);
            }
        }