CommandBehaviorBase

Name Value
Assembly Catel.MVVM
Namespace Catel.Windows.Interactivity
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - iOS
public abstract class CommandBehaviorBase<T> : BehaviorBase<T> where T : FrameworkElement 

Base types BehaviorBase

Behavior base class that handles a safe unsubscribe and clean up because the default behavior class does not always callOnDetaching. This class extends the Missing: class by adding supports for commands.

Type Parameters

T The this behavior should attach to.

Fields

CommandParameterProperty

The property definition for the CommandParameter dependency property.

CommandProperty

Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc…

ModifiersProperty

Using a DependencyProperty as the backing store for Modifiers. This enables animation, styling, binding, etc…

Properties

Command

Gets or sets the command to execute when the key is pressed.

CommandParameter

Gets or sets the command parameter, which will override the parameter defined in the direct command binding.

Modifiers

Gets or sets the modifiers to check for.

Methods


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion