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

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

            if (colorCanvas != null)
            {
                colorCanvas.OnAChanged((byte)e.OldValue, (byte)e.NewValue);
            }
        }
Exemple #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);
            }
        }