Volume Control
Application-specific hotkeys for Windows
|
Removes logical and/or keyboard focus from the attached control when the Escape key is pressed. More...
Static Public Attributes | |
static readonly DependencyProperty | FocusOnProperty |
The DependencyProperty for FocusOn. More... | |
static readonly DependencyProperty | FocusOnParentWindowProperty |
The DependencyProperty for FocusOnParentWindow. More... | |
static readonly DependencyProperty | AffectsKeyboardFocusProperty |
The DependencyProperty for AffectsKeyboardFocus. More... | |
static readonly DependencyProperty | AffectsLogicalFocusProperty |
The DependencyProperty for AffectsLogicalFocus. More... | |
static readonly DependencyProperty | SetEventAsHandledProperty |
The DependencyProperty for SetEventAsHandled. More... | |
Protected Member Functions | |
override void | OnAttached () |
override void | OnDetaching () |
Properties | |
Control?? | FocusOn [get, set] |
Gets or sets the Control that will be focused. More... | |
bool | FocusOnParentWindow [get, set] |
Gets or sets whether the focus will be set to the parent Window or cleared entirely. More... | |
bool | AffectsKeyboardFocus [get, set] |
Gets or sets whether the Keyboard focus is changed when the escape key is pressed. More... | |
bool | AffectsLogicalFocus [get, set] |
Gets or sets whether the Logical focus is changed when the escape key is pressed. More... | |
bool | SetEventAsHandled [get, set] |
Gets or sets whether PreviewKeyDown events for the Escape key are set as Handled. More... | |
Removes logical and/or keyboard focus from the attached control when the Escape key is pressed.
By default, the logical and keyboard focus are set to the Window that owns the attached control.
|
static |
The DependencyProperty for AffectsKeyboardFocus.
|
static |
The DependencyProperty for AffectsLogicalFocus.
|
static |
The DependencyProperty for FocusOnParentWindow.
|
static |
|
static |
The DependencyProperty for SetEventAsHandled.
|
getset |
Gets or sets whether the Keyboard focus is changed when the escape key is pressed.
true
when Keyboard.FocusedElement will be changed; otherwise false
.
|
getset |
Gets or sets whether the Logical focus is changed when the escape key is pressed.
true
when the FocusManager.FocusedElementProperty will be changed; otherwise false
.
|
getset |
Gets or sets the Control that will be focused.
When this is set to a non-null
value, the FocusOnParentWindow property is ignored.
|
getset |
Gets or sets whether the focus will be set to the parent Window or cleared entirely.
This property is ignored when FocusOn is set to a non-null
value.
|
getset |
Gets or sets whether PreviewKeyDown events for the Escape key are set as Handled.
PreviewKeyDown events where the KeyEventArgs.Key is not Key.Escape are never set as handled under any circumstances.
true
when events are set as Handled; otherwise false
when events are not set as handled.