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
355
Is it possible to right-justify a ribbon group?
posted

Is it possible to right-justify a ribbon group within the XamWebRibbon (IG 10.1)?  If so, can someone post some sample XAML?  I would like to have a group containing a "Logoff" button tool that is located to the far right of the ribbon, separated from the other groups.

TIA

Parents
No Data
Reply
  • 9836
    Suggested Answer
    posted

    I don't think there is any clean way to do this but one option is to put empty groupes between the actual groups on left the the most right group that will contain the Logoff button.

    <UserControl.Resources>

            <!-- =================================================================== -->

            <!-- RibbonGroupControl -->

            <!-- =================================================================== -->

            <Style TargetType="igPrim:RibbonGroupControl" x:Key="rgcStyle">

                <Setter Property="Template">

                    <Setter.Value>

                        <ControlTemplate TargetType="igPrim:RibbonGroupControl">

                            <Grid Width="1300" />

                        </ControlTemplate>

                    </Setter.Value>

                </Setter>

            </Style>

    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">

            <ig:XamRibbon x:Name="xamRibbon1" >

                <ig:XamRibbon.Tabs>

                    <ig:XamRibbonTabItem Header="Tab1">

                        <ig:XamRibbonGroup Caption="Group1">

                            <ig:ButtonTool Caption="Button1"/>

                            <ig:ButtonTool Caption="Button2"/>

                        </ig:XamRibbonGroup>

                       

                        <ig:XamRibbonGroup Style="{StaticResource rgcStyle}"/>

     

                        <ig:XamRibbonGroup Caption="Group">

                            <ig:ButtonTool Caption="Close"

                               SmallImage="/Images/Close.png"

                               LargeImage="/Images/Close.png"/>

                        </ig:XamRibbonGroup>

     

     

                    </ig:XamRibbonTabItem>

                </ig:XamRibbon.Tabs>

            </ig:XamRibbon>

    </Grid>

    Hope this helps.

    RightJustifyGroups.zip
Children