Back to Devexpress

RibbonControl.SelectedPage Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-764926d0.md

latest3.6 KB
Original Source

RibbonControl.SelectedPage Property

Gets or sets the RibbonControl’s selected page. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public RibbonPage SelectedPage { get; set; }
vb
Public Property SelectedPage As RibbonPage

Property Value

TypeDescription
RibbonPage

A RibbonPage object that specifies the selected page.

|

Remarks

You can use the SelectedPage or RibbonControl.SelectedPageName property to select a specific page. Another way to select a page is to use the RibbonPage.IsSelected property. This property also allows you to get whether a specific page is selected.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedPage 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.

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/CS/DataBindingToListExample/MainWindow.xaml.cs#L28

csharp
InitializeComponent();
ribbonControl1.SelectedPage = barPageExample;
#region #ErrorSubscribe

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/VB/DataBindingToListExample/MainWindow.xaml.vb#L30

vb
InitializeComponent()
            ribbonControl1.SelectedPage = barPageExample
' #Region "#ErrorSubscribe"

wpf-create-a-ribboncontrol/VB/RibbonControl_Ex/MainWindow.xaml.vb#L98

vb
If categorySelection.IsVisible Then RibbonControl.SelectedPage = categorySelection.Pages(0)
End Sub

See Also

SelectedPageName

SelectedPageCaptionTextStyle

SelectedPageChanged

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace