RibbonGroup always as a drop down. RRS feed

  • Question

  • Hi everyone

    How do you make a WPF (.net 4.5) RibbonGroup stay in button only mode, which when clicked then displays its content in a dropdown. It goes to this mode when you make the window width smaller.

    Or how to get the same thing with another drop down control where I can add other controls.

    <RibbonGroup Header="View Box" Style="{StaticResource View}"  KeyTip="W">
           <ListBox Width="100" Height="65"></ListBox>

    • Edited by hypodyne1 Monday, January 16, 2017 7:06 AM added info
    Monday, January 16, 2017 7:04 AM


  • Hi hypodyne1,

    I suggest you can try adding RibbonMenuButton/RibbonMenuItem in RibbonGroup.

        <RibbonGroup x:Name="ViewBoxGroup" Header="View Box">   
                        <RibbonMenuButton LargeImageSource="Images\Tulips.jpg" Label="View Box" KeyTip="W">   
                            <RibbonMenuItem ImageSource="Images\Tulips.jpg" Header="test" KeyTip="T"/>   
                            <RibbonMenuItem ImageSource="Images\Tulips.jpg" Header="Test1" KeyTip="S"/>   
                       <RibbonButton SmallImageSource="Images\Tulips.jpg" Label="Cut" KeyTip="X" />      

    The following links for your reference.

    Ribbon Control in WPF 4.5:

    Ribbon (WPF):

    If I have any misunderstanding, you can include all necessary code snippets/screenshots for anyone else to be able to reproduce your issue from scratch along with a detailed description about the results including any exception messages.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Yohann Lu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by hypodyne1 Tuesday, March 28, 2017 9:31 PM
    Tuesday, January 17, 2017 8:45 AM