Current filter:
                                You should refresh the page.
                                Support Center
                                  • 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!


                                You must  log in  or  register  to leave comments

                                1 Solution


                                Hi James,
                                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

                                • James Zhong 02.22.2013

                                  Thanks Konstantin for your explanation and suggestion! Now my problem is solved.

                                • Konstantin M (DevExpress) 02.24.2013

                                  You are welcome, James!

                                You must  log in  or  register  to leave comments

                                If you need additional product information, write to us at or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners