Back to Devexpress

EventTriggerBase<T>.EventName Property

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

latest1.7 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public string EventName { get; set; }
vb
Public Property EventName As String

Property Value

TypeDescription
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:

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

Event

EventTriggerBase<T> Class

EventTriggerBase<T> Members

DevExpress.Mvvm.UI.Interactivity Namespace