Ejemplo n.º 1
0
        /// <summary>
        /// Handles the <see cref="E:HexadecimalStringChanged" /> event.
        /// </summary>
        /// <param name="o">The o.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs" /> instance containing the event data.</param>
        private static void OnHexadecimalStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnHexadecimalStringChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the <see cref="E:UsingAlphaChannelPropertyChanged" /> event.
        /// </summary>
        /// <param name="o">The o.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs" /> instance containing the event data.</param>
        private static void OnUsingAlphaChannelPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnUsingAlphaChannelChanged();
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Handles the <see cref="E:BChanged" /> event.
        /// </summary>
        /// <param name="o">The o.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs" /> instance containing the event data.</param>
        private static void OnBChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnBChanged((byte)e.OldValue, (byte)e.NewValue);
            }
        }