Skip to main content

TileNavPane.MainButtonBehavior Property

Gets or sets whether TileNavPane.Categories or the TileNavPane.DefaultCategory‘s items are displayed as tiles on the Main Button click.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(TileNavPaneMainButtonBehavior.Default)]
[DXCategory("Behavior")]
public TileNavPaneMainButtonBehavior MainButtonBehavior { get; set; }

Property Value

Type Default Description
TileNavPaneMainButtonBehavior Default

The TileNavPaneMainButtonBehavior enumeration value specifying whether categories or items of the default category are displayed on the Main Button click.

Available values:

Name Description
ShowCategories

A click on the Main Button invokes a drop-down tile bar displaying categories (TileNavPane.Categories) as tiles.

ShowDefaultCategoryItems

A click on the Main Button invokes a drop-down tile bar displaying the default category’s items as tiles (see TileNavPane.DefaultCategory).

Default

A click on the Main Button invokes a drop-down tile bar displaying categories as tiles if the TileNavPane.Categories collection is not empty. Otherwise, a click on this button invokes a drop-down tile bar displaying the default category’s items as tiles (see TileNavPane.DefaultCategory).

Remarks

When an end-user clicks the Main Button (see NavButton.IsMain), a dropdown tile bar is invoked that displays tiles corresponding to either TileNavPane.Categories or the TileNavPane.DefaultCategory‘s items. Use the MainButtonBehavior property to specify the content of the dropdown tile bar.

See Also