RibbonControl.PageCategoryAlignment Property
Gets or sets the alignment of custom page categories, which display contextual tab pages. This is a dependency property.
Namespace: DevExpress.Xpf.Ribbon
Assembly: DevExpress.Xpf.Ribbon.v24.2.dll
NuGet Package: DevExpress.Wpf.Ribbon
Declaration
Property Value
Type | Description |
---|---|
RibbonPageCategoryCaptionAlignment | A RibbonPageCategoryCaptionAlignment value that specifies the alignment of custom page categories. |
Available values:
Name | Description |
---|---|
Default | The same as the RibbonPageCategoryCaptionAlignment.Left option. |
Left | Headers of contextual page categories are aligned to a Ribbon Control’s left edge. |
Right | Headers of contextual page categories are aligned to a Ribbon Control’s right edge. |
Remarks
Custom page categories, represented by RibbonPageCategory objects, are stored in the RibbonControl’s Items collection.
If the PageCategoryAlignment property is set to Left or Default, custom page categories are displayed immediately to the right of the RibbonControl’s default pages.
If the PageCategoryAlignment property is set to Right, custom page categories are anchored to the RibbonControl’s right edge.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PageCategoryAlignment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.