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
75
Force a RibbonGroup to dock to the right.
posted

Is there a good way to force one single RibbonGroup within a RibbonTab to always stay docked to the right ?

I've tried to fill up the space between the last "Productive" RibonGroup and the special RibbonGroup with an empty "spacer" Group.

But keebing its width always accurate does not seem to be to easey:

<igRibbon:XamRibbonWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:igRibbon="http://infragistics.com/Ribbon"
x:Class="WpfApplication5.MainWindow"
Title="MainWindow" Height="350" Width="525"
x:Name="window">
<igRibbon:RibbonWindowContentHost x:Name="paint">
<igRibbon:RibbonWindowContentHost.StatusBar>
<StatusBar Background ="#D5DBE0" MinHeight="21" MaxHeight="24" VerticalAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</igRibbon:RibbonWindowContentHost.StatusBar>
<igRibbon:RibbonWindowContentHost.Ribbon>
<igRibbon:XamRibbon x:Name= "myRibbon" IsMinimized="False" Theme="Office2013">
<igRibbon:XamRibbon.TabItemAreaToolbar>
<igRibbon:TabItemAreaToolbar TabItemAreaMinWidth="150">
<igRibbon:ButtonTool Caption="About"></igRibbon:ButtonTool>
</igRibbon:TabItemAreaToolbar>
</igRibbon:XamRibbon.TabItemAreaToolbar>
<igRibbon:RibbonTabItem Header="View" >
<igRibbon:RibbonGroup x:Name="navi" Caption="NAVIGATION" Margin="7,0,0,0">
<igRibbon:RadioButtonTool
Id="Home"
x:Name="HomeButton"
Caption="HOME"
igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"/>
<igRibbon:RadioButtonTool
Caption="BASIC"
igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"/>
<igRibbon:RadioButtonTool
Caption="TRANSFER"
igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"/>
</igRibbon:RibbonGroup>
<igRibbon:RibbonGroup x:Name="spacer" Width="305"/>
<igRibbon:RibbonGroup Caption="RIGHT" Margin="7,0,0,0"/>
</igRibbon:RibbonTabItem>
<igRibbon:RibbonTabItem Header="Next">
<igRibbon:RibbonGroup x:Name="nexter" Caption="FirstGroup" Margin="7,0,0,0">
</igRibbon:RibbonGroup>
<igRibbon:RibbonGroup x:Name="second" Caption="SecondGroup" Margin="7,0,0,0">
</igRibbon:RibbonGroup>
</igRibbon:RibbonTabItem>

</igRibbon:XamRibbon>
</igRibbon:RibbonWindowContentHost.Ribbon>
</igRibbon:RibbonWindowContentHost>
</igRibbon:XamRibbonWindow>