Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EventTriggerBase<T>.Event Property

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

Namespace: DevExpress.Mvvm.UI.Interactivity

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public RoutedEvent Event { get; set; }

#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