public static void RoundedCornerModePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { RibbonWindow window = (RibbonWindow)o; window.AttachRegion(); }
static void WindowActivePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { RibbonWindow w = (RibbonWindow)o; w.SetWindowTitleBrush(); }
static void GlassEnabledPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { RibbonWindow w = (RibbonWindow)o; w.SetIsGlassOnState(); }
private static void PerformMaximize(object sender, ExecutedRoutedEventArgs e) { RibbonWindow window = (RibbonWindow)sender; window.WindowState = window.WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized; }
private static void PerformMinimize(object sender, ExecutedRoutedEventArgs e) { RibbonWindow window = (RibbonWindow)sender; window.WindowState = WindowState.Minimized; }
private static void PerformClose(object sender, ExecutedRoutedEventArgs e) { RibbonWindow window = (RibbonWindow)sender; window.Close(); }