private static void OnRenderMouseOverChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ButtonChrome buttonChrome = o as ButtonChrome; if (buttonChrome != null) { buttonChrome.OnRenderMouseOverChanged((bool)e.OldValue, (bool)e.NewValue); } }