Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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