Bar

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.v20.1.dll

Declaration

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

Property Value

Type Description
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.

BarItem_ShowKeyGesture

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