Skip to main content

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.2.dll

NuGet Package: DevExpress.Wpf.Core


public RoutedEvent Event { get; set; }

Property Value

Type Description

A RoutedEvent that triggers the associated command.


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

        <dxmvvm:EventToCommand Command="{Binding LoadedCommand}" Event="FrameworkElement.Loaded"/>
        <dxmvvm:EventToCommand Command="{Binding TextChangedCommand}" Event="TextBoxBase.TextChanged"/>

If the source object contains the event, you can use the EventName property.

See Also