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>.EventName Property

Gets or sets the name of an 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 string EventName { get; set; }

#Property Value

Type Description
String

The name of an event that triggers the associated command.

#Remarks

In the code sample below, the EventToCommand behavior includes the EventName property, which specifies the name of the event you want to bind to the command:

<dxe:TextEdit>
    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand Command="{Binding LoadedCommand}" EventName="Loaded"/>
    </dxmvvm:Interaction.Behaviors>
</dxe:TextEdit>

You can also use the Event property.

See Also