Hi,
how can I use the separator tool? When I add a ButtonTool, SeparatorTool and another ButtonTool, the ribbon control raise an error. Is this a bug?
Here ist the Xaml:
<
UserControl x:Class
="SilverlightApplication3.MainPage"
xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d
="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc
="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:igRibbon
="http://schemas.infragistics.com/xaml"
mc:Ignorable
="d"
d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk
="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
<Grid x:Name="LayoutRoot" Background
="White">
<igRibbon:XamRibbon Name="ribbon" HorizontalAlignment="Stretch" VerticalAlignment
="Top" >
<igRibbon:XamRibbon.Tabs
>
<igRibbon:XamRibbonTabItem
<igRibbon:XamRibbonTabItem.Groups
<igRibbon:XamRibbonGroup
<igRibbon:XamRibbonGroup.Tools
<igRibbon:ButtonTool Caption
="Test"/>
<igRibbon:SeparatorTool
/>
</igRibbon:XamRibbonGroup.Tools
</igRibbon:XamRibbonGroup
</igRibbon:XamRibbonTabItem.Groups
</igRibbon:XamRibbonTabItem
</igRibbon:XamRibbon.Tabs
</igRibbon:XamRibbon
</Grid
</
UserControl
Regards
Marco
Hello,
In order to add separator in RibbonGroup, you could use the designer, right click the tool which should be first in the group and select “Begin a group”, please see attached video. Or you could use code like following in order to do the same at runtime:
for (int i = 13; i < 20; i++)
{
string key = string.Format("Button{0}", i);
ButtonTool button = new ButtonTool(key);
button.SharedProps.Caption = key;
ultraToolbarsManager1.Tools.Add(button);
ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools.AddTool(key).InstanceProps.IsFirstInGroup = (i % 3 == 1);
}
Please let me know if you have any further questions.
I´m facing the same problem, and I just want to confirm that if we can add a Separator to an Infragistic.Win.UltraWinToolbars.RibbonGroup?
I ant to filter several StateButtons that I added toa Group and I´m can´t figure out how to do this :(.
Thanks in advance for your response.
Jose
hm, is it possible, to use the separatortool in ribbongroups in the next release?
Hi Marco,
You can only use the SeparatorTool inside of a menu tool. Sorry about any confusion, let me know if you have any other questions.