Hello XAF Team,
How can I set RibbonControl .SelectedPage to 'Home', after I disabled ViewNavigationController in a window controller? My simple XAF WinForms application always shows 'View' page as the selected page in the RibbonControl.
I tried to set RibbonControl.SelectedPage to RibbonControl.Pages.GetPageByName("Home") or RibbonControl.MergedPages.GetPageByName("Home") in OnViewControlsCreated() method in a view controller, but it did not work ('View' page is always the selected page).
Looking forward to your suggestions!
Thank you for contacting us.
In XAF we have a RibbonControl descendant that manages pages and groups visibility.
To accomplish your task I suggest that you handle the Form.Shown event and set RibbonControl.SelectedPage. Let me know if I can assist you further
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.