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
990
Difficult resizing
posted

I have the need to achieve a RibbonGroup that when you resize it behaves like RibbonGroup "Include" of Outlook 2007, how can I do?
I have tried in many ways but there aren't successful.

Thanks for reply.

Parents
  • 54937
    Offline posted

    This example gets you most of the way there. The only difference being that the first 2 large tools don't go to image only. Is that the part you are referring to that you cannot accomplish?

    <igRibbon:XamRibbon>
        <igRibbon:XamRibbon.Resources>
            <DrawingImage x:Key="img">
                <DrawingImage.Drawing>
                    <GeometryDrawing Brush="Black">
                        <GeometryDrawing.Geometry>
                            <RectangleGeometry Rect="0,0,32,32" />
                        </GeometryDrawing.Geometry>
                    </GeometryDrawing>
                </DrawingImage.Drawing>
            </DrawingImage>
        </igRibbon:XamRibbon.Resources>
        <igRibbon:RibbonTabItem Header="Home">
            <igRibbon:RibbonGroup Caption="Include">
                <igRibbon:ButtonTool igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"
                                     Caption="Attach File" 
                                     SmallImage="{StaticResource img}" />
                <igRibbon:ButtonTool igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge" 
                                     Caption="Attach Item" 
                                     SmallImage="{StaticResource img}" />
                <igRibbon:MenuTool Caption="Business Card" 
                                   SmallImage="{StaticResource img}" >
                    <igRibbon:ButtonTool Caption="A Child Tool" />
                </igRibbon:MenuTool>
                <igRibbon:ButtonTool igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge" 
                                     Caption="Calendar" 
                                     SmallImage="{StaticResource img}" />
                <igRibbon:MenuTool Caption="Signature" 
                                   SmallImage="{StaticResource img}" >
                    <igRibbon:ButtonTool Caption="A Child Tool" />
                </igRibbon:MenuTool>
            </igRibbon:RibbonGroup>
            
            <!-- Another group just to take up space -->
            <igRibbon:RibbonGroup Caption="Some Other Stuff">
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
                <igRibbon:ButtonTool Caption="Just Some Long Text" />
            </igRibbon:RibbonGroup>
        </igRibbon:RibbonTabItem>
    </igRibbon:XamRibbon>

     

Reply Children