Skip to main content
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.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool ShowKeyGesture { get; set; }

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