Hi,
I have different tabs in Ribbon,
I have a File RibbonGroup, which is common across tabs
Is there anyway to make ribbon shared across tabs?
if not, reuable style resource like..
<Window.Resources>
<Style TargetType={x:Type igRibbon:RibbonGroup}>
<Setter Property="Items"> <!-- not sure what to put here as property-->
<Setter.Value>
<igRibbon:ToolVerticalWrap>......
</style>
You cannot define an itemscontrol (which the RibbonGroup is) in that way and be able to populate the Items collection. The way to do this would be to define a xaml file that defines a RibbonGroup and then use the Application.LoadComponent method to new up an instance of it at runtime. e.g. create a file named CommonRibbonGroup.xaml with the following content
Then at runtime you could instantiate instances of that uses the Application.LoadComponent method. e.g.
Alternatively you could derive a class from RibbonGroup and create instances of that instead of using LoadComponent but then the class will not follow the styling of the other elements if you set the Theme since in WPF a local style is always located based on the type name which in that case would be your derived type.