EventToCommand.ModifierKeys Property
In This Article
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.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(null)]
[TypeConverter(typeof(ModifierKeysConverter))]
public ModifierKeys? ModifierKeys { get; set; }
#Property Value
Type | Description |
---|---|
Nullable<DevExpress. |
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