Skip to main content
A newer version of this page is available. .

EventToCommand.ModifierKeys Property

Gets or sets modifier keys that need to be pressed to call the command. This is a dependency property.

Namespace: DevExpress.WinUI.Core

Assembly: DevExpress.WinUI.Core.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null)]
[TypeConverter(typeof(ModifierKeysConverter))]
public ModifierKeys? ModifierKeys { get; set; }

Property Value

Type Description
Nullable<DevExpress.WinUI.Core.Internal.ModifierKeys>

The set of modifier keys.

Remarks

In the code sample below, the bound ShowDetailCommand is invoked when a user presses Alt and clicks or taps a ListBoxItem.

<ListBox ...>
    <dx:Interaction.Behaviors>
        <dx:EventToCommand EventName="Tapped" Command="{x:Bind ShowDetailCommand}" ModifierKeys="Alt">
            <dx:EventToCommand.EventArgsConverter>
                <local:ListBoxPointerEventArgsConverter/>
            </dx:EventToCommand.EventArgsConverter>
        </dx:EventToCommand>
    </dx:Interaction.Behaviors>
</ListBox>
See Also