Skip to main content

RibbonControl.GetFirstSelectablePage() Method

Returns the first selectable RibbonPage contained within the current RibbonControl.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Package: DevExpress.Wpf.Ribbon

Declaration

public RibbonPage GetFirstSelectablePage()

Returns

Type Description
RibbonPage

A RibbonPage object that is the first selectable page within the parent ribbon control.

Remarks

The GetFirstSelectablePage method gets the first selectable page within a parent RibbonControl. This can be useful when operating contextual RibbonPageCategorys or performing actions based on the RibbonControllerCollection‘s methods (see the RibbonControl.Controllers topic). To obtain the first selectable page within a specific page category, use the RibbonPageCategoryBase.GetFirstSelectablePage method instead.

You can check if a page is currently selectable using the RibbonPage.IsSelectable property.

See Also