We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Is there an event to detect when the user collapses the ribbon?

I would like to be able to detect when the user collapses the ribbon control. (see the screenshot). I need to resize a Panel control on the form to take advantage of the screen real estate that changes when you collapse and reveal the ribbon toolbar. 

The thing is I can't seem to find any events for this control.

I can do this work around the SizeChanged event but it's clunky.

I'm looking for something like:

RibbonControl_CollapseState(sender As Object, e As EventArgs) Handles RibbonControl.CollapseState

Any options for this?

3 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team May 28, 2019 02:13 PM UTC

Hi Bob, 
  
Thank you for contacting Syncfusion support.  
  
Based on the information provided, the PanelStateChanged event can be used in WinForms to fulfill  
your requirement of "Detecting the collapsed Ribbon state".  
 
We have prepared sample based on your requirement,   
  
We hope this helps. Please let us know, if you need any further assistance. 
 
Regards,
Subburaj Pandian V 



JJ Jayabharathi J Syncfusion Team May 29, 2019 04:37 AM UTC

Thank you. I think this will work great.


SP Subburaj Pandian Veluchamy Syncfusion Team May 30, 2019 08:52 AM UTC

Hi Bob,

Thank you for the update. We are happy that the given solution meets your requirement. 
 
Please get in touch with us if you would require any further assistance. 
 
Regards,
Subburaj Pandian V 


Loader.
Live Chat Icon For mobile
Up arrow icon