コード例 #1
0
ファイル: RibbonWindow.cs プロジェクト: gmcclelland90/FAP
        public static void RoundedCornerModePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)o;

            window.AttachRegion();
        }
コード例 #2
0
ファイル: RibbonWindow.cs プロジェクト: gmcclelland90/FAP
        static void WindowActivePropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow w = (RibbonWindow)o;

            w.SetWindowTitleBrush();
        }
コード例 #3
0
ファイル: RibbonWindow.cs プロジェクト: gmcclelland90/FAP
        static void GlassEnabledPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            RibbonWindow w = (RibbonWindow)o;

            w.SetIsGlassOnState();
        }
コード例 #4
0
        private static void PerformMaximize(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.WindowState = window.WindowState == WindowState.Maximized  ? WindowState.Normal : WindowState.Maximized;
        }
コード例 #5
0
        private static void PerformMinimize(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.WindowState = WindowState.Minimized;
        }
コード例 #6
0
        private static void PerformClose(object sender, ExecutedRoutedEventArgs e)
        {
            RibbonWindow window = (RibbonWindow)sender;

            window.Close();
        }