Skip to main content

RibbonPageCategory Class

Represents a Ribbon custom page category, used to implement contextual Ribbon pages.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v14.2.dll

#Declaration

public class RibbonPageCategory :
    RibbonPageCategoryBase

#Remarks

The default and custom Ribbon page categories are represented by the RibbonDefaultPageCategory and RibbonPageCategory classes, respectively.

Custom page categories are used to implement contextual tab pages. Use the RibbonPageCategoryBase.Caption property to specify a caption for a custom category. The RibbonPageCategoryBase.IsVisible property allows you to control the category's visibility.

The contents of page categories are ribbon pages. To add pages to a category, use the RibbonPageCategoryBase.Pages collection. In XAML, you can define RibbonPage objects between the start and end category tags.

See Ribbon Page Categories and Contextual Pages to learn more.

#Examples

This example shows how to create a custom page category. This category is hidden by default. It's made visible when clicking a dedicated button.

The following image shows the result:

RibbonControl_Ex_CustomCategory

See Also