Skip to main content

HamburgerSubMenuNavigationButton.PreviewRightContent Property

Gets or sets the additional content displayed to the right of the principal content when the button is displayed in the preview.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v21.2.dll


public object PreviewRightContent { get; set; }

Property Value

Type Description

The additional button content.


If the HamburgerSubMenuNavigationButton.ShowInPreview option is enabled, the current item is displayed below the sub-menu button directly in the main menu. Using the PreviewRightContent property, you can provide custom additional content to be displayed in the preview. For instance, if a given button opens a folder in a mail box, you can use this property to indicate to the end-user the number of unread messages in the folder. To specify how the provided data object is rendered, use the HamburgerSubMenuNavigationButton.PreviewRightContentTemplate property. If no data template is assigned, the string representation of the object is used.

The HamburgerSubMenuNavigationButton.PreviewContent property specifies the button content for the preview to be displayed instead of the principal content.

<dxwui:HamburgerSubMenuNavigationButton Content="Inbox" ShowInPreview="True" PreviewContent="Inbox (DevExpress)" PreviewRightContent="[142]" />
See Also