EventToCommand Members
Executes a command in response to a raised event.Constructors
| Name | Description |
|---|---|
| EventToCommand() | Initializes a new instance of the EventToCommand class. |
Fields
Properties
| Name | Description |
|---|---|
| AllowChangingEventOwnerIsEnabled | Gets or sets whether the event source object’s IsEnabled property value reflects the command’s CanExecute method value. This is a dependency property. |
| Command | Gets or sets the command to invoke when the associated event is raised. This is a dependency property. Inherited from EventToCommandBase. |
| CommandParameter | Gets or sets a parameter to pass to the EventToCommandBase.Command. This is a dependency property. Inherited from EventToCommandBase. |
| CommandTarget | Gets or sets the target element on which to raise the specified Command. This is a dependency property. Inherited from EventToCommandBase. |
| DispatcherPriority | Gets or sets the priority of the Dispatcher that invokes the associated command. This is a dependency property. Inherited from EventToCommandBase. |
| Event | Gets or sets a routed event that triggers the associated command. Inherited from EventTriggerBase<T>. |
| EventArgsConverter | Gets or sets an object that converts the event’s argument to a command’s parameter. This is a dependency property. |
| EventName | Gets or sets the name of an event that triggers the associated command. Inherited from EventTriggerBase<T>. |
| HasAnimatedProperties | Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable. |
| MarkRoutedEventsAsHandled | Gets or sets whether the associated routed event is marked as handled when the command is executed. This is a dependency property. Inherited from EventToCommandBase. |
| ModifierKeys | Gets or sets modifier keys that need to be pressed to call the command. This is a dependency property. |
| PassEventArgsToCommand | Gets or sets whether the event arguments are passed to the command. This is a dependency property. |
| ProcessEventsFromDisabledEventOwner | Gets or sets whether the EventToCommand processes events for the source object even if the source object is disabled. This is a dependency property. Inherited from EventToCommandBase. |
| Source | Gets the source object. Inherited from EventTriggerBase<T>. |
| SourceName | Gets or sets the name of the source object that raises the event. This is a dependency property. Inherited from EventTriggerBase<T>. |
| SourceObject | Gets or sets a source object that raises the event. This is a dependency property. Inherited from EventTriggerBase<T>. |
| UseDispatcher | Gets or sets if the EventToCommand behavior uses the Dispatcher to call the command. This is a dependency property. Inherited from EventToCommandBase. |
Methods
| Name | Description |
|---|---|
| ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable. |
| ApplyAnimationClock(DependencyProperty, AnimationClock) | Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable. |
| BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable. |
| BeginAnimation(DependencyProperty, AnimationTimeline) | Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable. |
| Clone() | Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable. |
| GetAnimationBaseValue(DependencyProperty) | Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable. |
| ShouldSerializeStoredWeakReference(DependencyObject) static | Specifies whether a dependency object should be serialized. Inherited from Animatable. |
See Also