Exemple #1
0
        /// <summary>
        /// IsPressedProperty property changed handler.
        /// </summary>
        /// <param name="d">ButtonBase that changed its IsPressed.</param>
        /// <param name="e">DependencyPropertyChangedEventArgs.</param>
        private static void OnIsPressedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ButtonBase source = d as ButtonBase;

            Debug.Assert(source != null,
                         "The source is not an instance of ButtonBase!");

            source.OnIsPressedChanged(e);
        }
Exemple #2
0
        /// <summary>
        ///     Called when IsPressedProperty is changed on "d."
        /// </summary>
        private static void OnIsPressedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ButtonBase ctrl = (ButtonBase)d;

            ctrl.OnIsPressedChanged(e);
        }