Exemplo n.º 1
0
        public static void RoundedCornerModePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)o;

            window.AttachRegion();
        }
Exemplo n.º 2
0
        static void WindowActivePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow w = (RibbonWindow)o;

            w.SetWindowTitleBrush();
        }
Exemplo n.º 3
0
        static void GlassEnabledPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow w = (RibbonWindow)o;

            w.SetIsGlassOnState();
        }
Exemplo n.º 4
0
        private static void PerformMaximize(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.WindowState = window.WindowState == WindowState.Maximized  ? WindowState.Normal : WindowState.Maximized;
        }
Exemplo n.º 5
0
        private static void PerformMinimize(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.WindowState = WindowState.Minimized;
        }
Exemplo n.º 6
0
        private static void PerformClose(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.Close();
        }