Setting the collapse for a group

Jun 17, 2010 at 4:16 PM

Hi,

I am trying to get a button in the ribbon that when click it expands and displays the submenu ( like the "Move Details" button that is diplayed at the bottom in the 4rd picture at http://windowsclient.net/wpf/wpf35/wpf-35sp1-ribbon-walkthrough.aspx)

It doesn't matter what value I give to the IsCollapse it always behaves as if it was set to false, eventhough it is set to True.

Here is the code. If someone could please point out what I am doing wrong

Thanks

 

  <r:RibbonGroup >
                    <r:RibbonGroup.Command>
                        <r:RibbonCommand LabelTitle="Table"
                             SmallImageSource="Images/Table.gif"/>
                    </r:RibbonGroup.Command>
                    <r:RibbonGroup.GroupSizeDefinitions>
                        <r:RibbonGroupSizeDefinitionCollection>
                            <r:RibbonGroupSizeDefinition>
                                <r:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True"/>
                                <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                            </r:RibbonGroupSizeDefinition>
                            <r:RibbonGroupSizeDefinition IsCollapsed="True"/>
                        </r:RibbonGroupSizeDefinitionCollection>
                    </r:RibbonGroup.GroupSizeDefinitions>
                    <r:RibbonButton Command="{StaticResource TableRowCommand}"/>
                    <r:RibbonButton Command="{StaticResource TableColumnCommand}"/>
 
                </r:RibbonGroup>