With the code below, I am getting the following error:
"Style intended for type 'ButtonTool' cannot be applied to type 'ContentPresenter'.
Any hints? Thank you.
<igRibbon:RibbonGroup Caption="..."
DataContext="{Binding Path={x:Static vm:clsBaseGUIViewModel.MenuViewModelPath}}" ItemsSource="{Binding Path={x:Static vm:clsBaseGUIMenuViewModel.HelpTabFirstGroupItemsPath}}"> <igRibbon:RibbonGroup.ItemContainerStyle> <Style TargetType="{x:Type igRibbon:MenuTool}"> <Setter Property="Caption" Value="{Binding Path={x:Static vm:clsMenuItemViewModel.DisplayNamePath}}" /> </Style> </igRibbon:RibbonGroup.ItemContainerStyle> </igRibbon:RibbonGroup>
In a few words, they don't recommend doing this with the Infragistics Ribbon. Check http://forums.infragistics.com/forums/p/24666/90517.aspx