Back to Devexpress

EventTriggerBase<T>.Event Property

wpf-devexpress-dot-mvvm-dot-ui-dot-interactivity-dot-eventtriggerbase-1-39827591.md

latest1.9 KB
Original Source

EventTriggerBase<T>.Event Property

Gets or sets a routed event that triggers the associated command.

Namespace : DevExpress.Mvvm.UI.Interactivity

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public RoutedEvent Event { get; set; }
vb
Public Property [Event] As RoutedEvent

Property Value

TypeDescription
RoutedEvent

A RoutedEvent that triggers the associated command.

|

Remarks

The code sample below uses the Event properties to specify routed events:

xaml
<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

EventName

EventTriggerBase<T> Class

EventTriggerBase<T> Members

DevExpress.Mvvm.UI.Interactivity Namespace