Ticket T455007
Visible to All Users

Set the ribbon item shrink/collapse order

created 8 years ago

Hi DevExpress

I have an application where some buttons are more important than others and I want the important buttons collapsed last when the ribbon does not fit in the window width. I have attached a sample application (yours) to illustrate the issue.

There is talk about a ShrinkPriority and CollapsePriority (ShrinkPriority), but the property does not seem to exist in WPF.

Repro

  1. Switch to the tab Review
  2. Change the width of the application window so it is smaller than the width of the ribbon
  3. Watch the order buttons are changed to make the ribbon fit within the current window width

Actual
The page group Protect is minimized first, then Comment and last Tracking

Expected
Q1. Why is Proofing, the leftmost group, not minimized first?
Q2. How do I to set a priority on the groups or items to force the item shrink order? Eg I would like the group Protect to be shrunk last!

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hello Matias,

Thank you for the detailed description and providing the sample. The thread you mentioned is devoted to our RibbonControl for UWP controls and the corresponding capability is supported there.

RibbonControl collapses groups starting with the widest group, and at the moment RibbonControl does not provide the capability to set the order in which the groups will be collapsed. I've informed our developers about your inquiry, so that they can take it into account in the future. Thank you for pointing this out.

If, however, you still wish to collapse the groups starting with the rightmost group, you can use the approach Andrey described in the following thread: T108007 - WPF Ribbon control pages collapse order. I've upgraded your project using the same approach, including the improvements that were made in the context of one of private tickets. Yet, I must warn you that this approach is not ideal and may require additional adaptation for your application. For this reason, I would say that you can use this solution at your own risk only.

Thanks,
Andrey

P.S. See also dxSample2.zip containing the project from that private thread.

    Comments (2)

      Thanks, I might be able to work with this but would greatly appreciate if the functionality from UWP Ribbon Control was implemented in WPF as well.

      Andrey Marten (DevExpress Support) 8 years ago

        Matias, our developers are aware about your inquiry and we will discuss the capability to support this functionality in the future. Thank you for your suggestion.
        Please do not hesitate to contact us if you have other questions.
        Andrey

        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.