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
1805
Auto expand Frame when XamOutlookBar Collapses
posted

Folks,

My requirement is auto expand frame (which is inside grid), when the xamoutlookbar is collapsed. any ideas?

below is my code

    <Grid>
        <igOutlookBar:XamOutlookBar Margin="-1,150,0,0" Name="xamOutlookBar1" VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="180" Theme="Office2k7Black">
            <igOutlookBar:OutlookBarGroup Header="Group 1" IsSelected="True">
                <Grid />
            </igOutlookBar:OutlookBarGroup>
            <igOutlookBar:OutlookBarGroup Header="Group 2">
                <Grid />
            </igOutlookBar:OutlookBarGroup>
        </igOutlookBar:XamOutlookBar>
        <igRibbon:XamRibbon Height="144" Name="xamRibbon1" VerticalAlignment="Top" Theme="Office2k7Black">
            <igRibbon:XamRibbon.ApplicationMenu>
                <igRibbon:ApplicationMenu />
            </igRibbon:XamRibbon.ApplicationMenu>
            <igRibbon:XamRibbon.QuickAccessToolbar>
                <igRibbon:QuickAccessToolbar />
            </igRibbon:XamRibbon.QuickAccessToolbar>
        </igRibbon:XamRibbon>
        <Grid Name="MyBodyGrid"
                  Margin="185,150,6,0"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch" Background="#FFC73636">
            <Frame Name="MyFrameBody" />
        </Grid>
    </Grid>

  • 1805
    Verified Answer
    posted

    Sorted now.

    If you like to know that how its done.

    you must have basic layout knowledge of grid layout settings.

    Divide your gird and drop your controls on both the sides (make sure you set the property of controls to streched). now move your mouse on grid line or divider line set it to auto.

    That it done... pretty cool...