Skip to main content

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

HamburgerSubMenuNavigationButton.PreviewContent Property

Gets or sets button content when it is displayed in the sub-menu’s preview in the main menu.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public object PreviewContent { get; set; }

#Property Value

Type Description
Object

An object specifying the button content when it is displayed is the sub-menu’s preview in the main menu.

#Remarks

If the HamburgerSubMenuNavigationButton.ShowInPreview option is enabled, the current item is displayed below the sub-menu button directly in the main menu. By default, the button’s content in the preview is the same as the principal content displayed in the sub-menu fly-out panel. However, using the PreviewContent proprety, you can provide a custom button’s content to be displayed in the preview. To specify how the provided data object is rendered, use the HamburgerSubMenuNavigationButton.PreviewContentTemplate property. If no data template is assigned, the string representation of the object is used.

The HamburgerSubMenuNavigationButton.PreviewRightContent property specifies the button’s additional content for the preview.

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