Back to Devexpress

BarItem.ShowKeyGesture Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-4f404e50.md

latest2.5 KB
Original Source

BarItem.ShowKeyGesture Property

Gets or sets whether key shortcuts are visible for the current BarItem‘s links displayed in menus. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
Boolean

true, if the key shortcut is displayed; otherwise, false.

|

Remarks

The ShowKeyGesture property specifies the visibility of shortcuts (BarItem.KeyGesture) for the current BarItem’s links displayed in menus (PopupMenu, ApplicationMenu, GalleryDropDownPopupMenu, BarSubItem, etc).

The image below demonstrates the menu in which a key gesture is displayed for an Open bar item link.

When a BarItemLink is displayed in the PopupMenu or its descendant, the BarItem.ShowKeyGesture setting can be overridden with the PopupMenu.ShowKeyGestures property.

The ShowKeyGesture property does not affect key shortcut display in tooltips. This behavior can be specified with the BarManager.ShowShortcutInScreenTips property.

See Also

ShowKeyGestures

KeyGesture

ShowShortcutInScreenTips

Items and Links

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace