Class WindowAltF4Behavior
Implements a behavior to supress the execution of 'windows Alt + F4' and optionally execute a command instead.
Behavior<FrameworkElement>.AssociatedObject
Behavior.OnDetaching()
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class WindowAltF4Behavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
Fields
View SourceCancelCommandProperty
The command that is executed when alt + f4 is pressed.
Declaration
public static readonly DependencyProperty CancelCommandProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceCancelCommand
Gets or sets the command that is executed when alt + f4 is pressed.
Declaration
public ICommand CancelCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| ICommand | The cancel command. |
Methods
View SourceOnAttached()
called when the behavior is attached
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
Implements
Microsoft.Xaml.Behaviors.IAttachedObject