예제 #1
0
파일: ButtonBase.cs 프로젝트: ynkbt/moon
        /// <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);
        }
예제 #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);
        }