C# Class Microsoft.Windows.Controls.Ribbon.RibbonWindow

Inheritance: System.Windows.Window
Datei anzeigen Open project: kasicass/kasicass Class Usage Examples

Public Methods

Method Description
OnApplyTemplate ( ) : void

Private Methods

Method Description
ChangeIconVisibility ( Visibility newVisibility ) : void

This method allows Ribbon to propagate the WindowIconVisibility property to its containing RibbonWindow.

CloseApplicationCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
CloseApplicationExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
CloseWindowCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
CloseWindowExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
IconMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

This handles the click events on the window icon.

IconMouseRightButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

This handles right-click events on the window icon. For right-clicking, we want to display the system menu from the point of the mouse click instead of from the top-left corner of the client area like we do with left clicks. So, we pass the MouseButtonEventArgs to the SystemMenuExecuted handler.

MaximizeWindowCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
MaximizeWindowExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
MinimizeWindowCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
MinimizeWindowExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnTitleChanged ( EventArgs e ) : void
OnTitleChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RestoreWindowCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
RestoreWindowExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
RibbonWindow ( ) : System

Static constructor. Initializes static members of the RibbonWindow class.

SystemMenuCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
SystemMenuExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs args ) : void

Method Details

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void