Back to Devexpress

RibbonPageCategoryBase.PageStyleSelector Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribbonpagecategorybase-4fe8b17f.md

latest2.5 KB
Original Source

RibbonPageCategoryBase.PageStyleSelector Property

Gets or sets an object that chooses a style applied to objects generated with the RibbonPageCategoryBase.PagesSource](xref:DevExpress.Xpf.Ribbon.RibbonPageCategoryBase.PagesSource) collection. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public StyleSelector PageStyleSelector { get; set; }
vb
Public Property PageStyleSelector As StyleSelector

Property Value

TypeDescription
StyleSelector

A StyleSelector descendant that applies a style based on custom logic.

|

Remarks

The RibbonPageCategoryBase.PageStyle property defines a style applied to objects generated with the RibbonPageCategoryBase.PagesSource collection. If you have more than one style, you can implement custom logic to choose the required style. To do this, derive from the StyleSelector class, implement the SelectStyle method that returns the style which meets the required condition, and assign it to the PageStyleSelector property.

The PageStyleSelector property supports the MVVM design pattern. Refer the MVVM Support topic for more information.

See Also

PageStyle

PageTemplate

PageTemplateSelector

RibbonPageCategoryBase Class

RibbonPageCategoryBase Members

DevExpress.Xpf.Ribbon Namespace