Skip to main content

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