Back to Devexpress

EventToCommandBase.MarkRoutedEventsAsHandled Property

wpf-devexpress-dot-mvvm-dot-ui-dot-eventtocommandbase-0e79f686.md

latest1.6 KB
Original Source

EventToCommandBase.MarkRoutedEventsAsHandled Property

Gets or sets whether the associated routed event is marked as handled when the command is executed. This is a dependency property.

Namespace : DevExpress.Mvvm.UI

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool MarkRoutedEventsAsHandled { get; set; }
vb
Public Property MarkRoutedEventsAsHandled As Boolean

Property Value

TypeDefaultDescription
BooleanFalse

true if the associated routed event is marked as handled; otherwise, false.

|

Remarks

If the MarkRoutedEventsAsHandled property is set to true , the EventToCommand sets the e.Handled parameter of corresponding event arguments to true immediately after the bound command is executed.

xaml
<dxmvvm:EventToCommand MarkRoutedEventsAsHandled="True"/>

See Also

EventToCommandBase Class

EventToCommandBase Members

DevExpress.Mvvm.UI Namespace