RibbonQuickAccessToolBar (Minimize / Maxmize) event?

Nov 14, 2008 at 3:31 PM
Is there a event that is fired when the user selects to Maximize or Minimize the Ribbon in the RibbonQuickAccessToolBar?
Nov 14, 2008 at 11:16 PM
Hi ashlar64,

There are no built in Maximize or Minimize events, but as a workaround you can listen for the Opened & Closed events on the popup part (PART_SELECTEDGROUPSPOPUP) which displays the Ribbon when it's in the minimize mode.

If you don't mind, can I ask what you're using these events for?  The reason we didn't include them was because we couldn't think of a strong enough real-world scenario for needing them, so if you have a scenario, we'd love to hear about it.

Nov 17, 2008 at 1:55 PM
Hi Samantha,

Well I am making a app with a DataGrid on it.  I figured that instead of having a empty space between the datagrid and the minimized Ribbon I would just increase the DataGrids size and utilize that empty space.  For instance Word 2007 does something similar.  I am still a bit new with C# perhaps there is a better way to do this then with a event?  Some sort of databinding perhaps?
Nov 18, 2008 at 7:59 PM
Ok, I see.  The way I usually do this is that I structure my app so that the Ribbon and DataGrid are both contained in a Grid.  I give the top row of the Grid (which contains Ribbon) a Height of Auto and the second row (which contains DataGrid) a Height of *.  I also don't set an explicit Height or Width on DataGrid.  The XAML look something like this (and you should also be able to do the same thing in code):

        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>

    <r:Ribbon Grid.Row="0"/>

    <dg:DataGrid Grid.Row="1"/>


I find that when my app is structured in this way, when the Ribbon is minimized, the top row of the Grid automatically collapses when Ribbon is minimized and the second row grows so that DataGrid fills all of the remaining space.  Does something like that work for you?

Aug 18, 2009 at 10:27 AM

Hi Samantha,

I've got a question about minimizing a ribbon. How I do minimize it using code? Like calling some method or setting some property to true/false. I want that ribbon initialy was collapsed and cant figure out how to do this.


With regards Sergiy

Aug 18, 2009 at 6:54 PM

Hi Sergiy,

You just have to set the Ribbon's IsMinimized property to true.


Aug 19, 2009 at 9:56 AM

Thanks a lot Samantha. Works great.

Mar 23, 2011 at 7:33 PM
Edited Mar 23, 2011 at 7:35 PM

How would I go about using PART_SELECTEDGROUPSPOPUP? Would this be the same procedure for the new version of the WPF Ribbon released at the end of 2010?

I'm using the most recent release of the WPF ribbon from MS. I utilize a MVVM pattern thats very similar to the samples that were included. When I minimize the ribbon window via the context menu, it appears to work correctly, but when I click it again to redisplay it (right clicking on the empty space to the right of the tab header), the ribbon control reappears, but the tab headers are blank.

I performed a simple test. I added a button to my program and in it I loop through each view model object for the tabs and call my OnPropertyChanged(..) function for the Header property. When the tab headers become blank, and I click the button, they reappear... so something is not firing to redisplay the tab headers.


I also posted the same question here http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/aa5b97ea-eb2a-419e-a8aa-78df135539ba

Mar 26, 2012 at 1:08 PM



Ribbon group is disabled when I start application.

In tooltip of ribbon I click "minimize ribbon"

Then I set property "IsEnabled" (by binding from VM) in true, but it's no effect and it's in disabled mode.

So it is bug, but if this events exists I could reset binding :)