Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
Free Standing RibbonGroup - bad idea?
posted

I want a free standing ribbon group () with a single row of buttons in it. However i can't seem the shrink down the ribbon group height without cutting off my buttons. Sample app attached to demonstrate what I am looking for and seeing. Please advise. Faster the better.

RibbonGroupIssue.zip
  • 54937
    Suggested Answer
    Offline posted

    The RibbonGroup was designed and tested to be used within the xamRibbon. That being said it should be possible for you to use it outside the ribbon. The issue you are encountering is that the default ItemsPanel of the RibbonGroup is a ToolVerticalWrapPanel. The Tool(Vertical|Horizontal)WrapPanel classes were designed to support the tool/control layout within a RibbonGroup and as such calculate their desired size accordingly (e.g. 3 rows of "small" tools). You could just set the ItemsPanel to a different Panel type. e.g.

    <igRibbon:RibbonGroup Caption="ABC">
        <igRibbon:RibbonGroup.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </igRibbon:RibbonGroup.ItemsPanel>
        <Button Content="ABC" />
    </igRibbon:RibbonGroup>