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

                                    Regards,
                                    James

                                1 Solution

                                Creation Date Rating Importance Sort by
                                1

                                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!

                                • Joe Smith 4 09.19.2015

                                  Someone could write an example of code to handle the  "Form.Shown" event. What is the descendant of RibbonControl in XAF which handles the visibility of pages and groups?. The Shown event to which object  belongs?

                                • Hello Joe,

                                  To process your recent post more efficiently, I created a separate ticket on your behalf: T291754: Controlling visibility of ribbon page groups. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

                                If you need additional product information, write to us at info@devexpress.com 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, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

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