Beispiel #1
0
        /// <summary>
        /// Method executes when the render pressed dependency property is changed.
        /// </summary>
        /// <param name="o"></param>
        /// <param name="e"></param>
        private static void OnRenderPressedChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ButtonChrome buttonChrome = o as ButtonChrome;

            if (buttonChrome != null)
            {
                buttonChrome.OnRenderPressedChanged((bool)e.OldValue, (bool)e.NewValue);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Method executes when the inner corner radius dependency property is changed.
        /// </summary>
        /// <param name="o"></param>
        /// <param name="e"></param>
        private static void OnInnerCornerRadiusChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ButtonChrome buttonChrome = o as ButtonChrome;

            if (buttonChrome != null)
            {
                buttonChrome.OnInnerCornerRadiusChanged((CornerRadius)e.OldValue, (CornerRadius)e.NewValue);
            }
        }