C# Класс withSIX.Core.Presentation.Wpf.Behaviors.WindowCloseBehavior

Attached behavior that keeps the window on the screen
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
EscapeClosesWindowProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetEscapeClosesWindow() публичный статический Метод

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
Результат bool

SetEscapeClosesWindow() публичный статический Метод

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
Результат void

Описание свойств

EscapeClosesWindowProperty публичное статическое свойство

KeepOnScreen Attached Dependency Property
public static DependencyProperty,System.Windows EscapeClosesWindowProperty
Результат System.Windows.DependencyProperty