EventTriggerBase<T>.Event Property
Gets or sets a routed event that triggers the associated command.
Namespace: DevExpress.Mvvm.UI.Interactivity
Assembly: DevExpress.Xpf.Core.v22.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
RoutedEvent | A RoutedEvent that triggers the associated command. |
Remarks
The code sample below uses the Event properties to specify routed events:
<dxe:TextEdit>
<dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand Command="{Binding LoadedCommand}" Event="FrameworkElement.Loaded"/>
<dxmvvm:EventToCommand Command="{Binding TextChangedCommand}" Event="TextBoxBase.TextChanged"/>
</dxmvvm:Interaction.Behaviors>
</dxe:TextEdit>
If the source object contains the event, you can use the EventName property.
See Also