C# Class withSIX.Core.Presentation.Wpf.Behaviors.WindowCloseBehavior

Attached behavior that keeps the window on the screen
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop

Méthodes publiques

Свойство Type Description
EscapeClosesWindowProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetEscapeClosesWindow ( DependencyObject d ) : bool

Gets the EscapeClosesWindow property. This dependency property indicates whether or not the escape key closes the window.

SetEscapeClosesWindow ( DependencyObject d, bool value ) : void

Sets the EscapeClosesWindow property. This dependency property indicates whether or not the escape key closes the window.

Private Methods

Méthode Description
OnEscapeClosesWindowChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the EscapeClosesWindow property.

Window_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Handle the PreviewKeyDown event on the window

Method Details

GetEscapeClosesWindow() public static méthode

Gets the EscapeClosesWindow property. This dependency property indicates whether or not the escape key closes the window.
public static GetEscapeClosesWindow ( DependencyObject d ) : bool
d System.Windows.DependencyObject to get the property from
Résultat bool

SetEscapeClosesWindow() public static méthode

Sets the EscapeClosesWindow property. This dependency property indicates whether or not the escape key closes the window.
public static SetEscapeClosesWindow ( DependencyObject d, bool value ) : void
d System.Windows.DependencyObject to set the property on
value bool value of the property
Résultat void

Property Details

EscapeClosesWindowProperty public_oe static_oe property

KeepOnScreen Attached Dependency Property
public static DependencyProperty,System.Windows EscapeClosesWindowProperty
Résultat System.Windows.DependencyProperty