Ticket T108007
Visible to All Users

WPF Ribbon control pages collapse order

created 11 years ago

When ribbon doesn't have enough place to show all pages and  AllowCollapse is set to true for RibbonPageGroup, groups are collapsed starting from the most left group.
The question is:  Is there a way to change pages collapse order? I mean to collapse most right groups at first.

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hello Vladimir,

RibbonPageGroups are collapsed starting from the widest group. To achieve your goal, handle the RibbonControl.SizeChanged event and set the RibbonPageGroupControl.IsCollapsed property as required.

Please try this solution and let me know whether or not it meets your requirements.

I am looking forward to your response.

Thanks,
Andrew

    Show previous comments (1)
    Andrey K (DevExpress Support) 11 years ago

      I have created a small example to show this approach. Please take a look at the attachment.

      Thanks,
      Andrew

      VC VC
      Vladimir Chernovets 11 years ago

        Nice. Thank You.

        Andrey K (DevExpress Support) 11 years ago

          You are welcome. I am happy to hear that my assistance was helpful. Thank you for keeping me informed.

          Andrew.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.