Class EventToCommandBehavior
Represents a behavior that binds an event to a command.
public class EventToCommandBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
- Inheritance
-
EventToCommandBehavior
- Implements
-
IAttachedObject
- Extension Methods
Fields
Properties
- Command
Gets or sets the command to execute when the event is triggered.
- CommandParameter
Gets or sets the parameter to pass to the command.
- Event
Gets or sets the name of the event to bind.
- PassParameter
Gets or sets a value indicating whether to pass the parameter to the command.
Methods
- OnAttached()
Called after the behavior is attached to an AssociatedObject.