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

Attached behavior that keeps the window on the screen
Mostra file Open project: SIXNetworks/withSIX.Desktop

Public Properties

Property Type Description
EscapeClosesWindowProperty System.Windows.DependencyProperty

Public Methods

Method 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

Method 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 method

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
return bool

SetEscapeClosesWindow() public static method

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
return void

Property Details

EscapeClosesWindowProperty public_oe static_oe property

KeepOnScreen Attached Dependency Property
public static DependencyProperty,System.Windows EscapeClosesWindowProperty
return System.Windows.DependencyProperty