Skip to main content

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.v23.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