Dear,
I would like to override the style of GroupBarItem and GroupViewItem.
I follow the steps described on https://www.syncfusion.com/kb/4173/how-to-override-syncfusion-themes.
but the app doesn’t find de resource dictionary for GroupBarItem and GroupViewItem:
merge dictionaries:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/Controls/GroupBarItem/Themes/MetroStyle.xaml" />
<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/Controls/GroupViewItem/Themes/MetroStyle.xaml" />
<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/SkinManager/MetroStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
and override style:
<syncfusion:GroupBar.ItemContainerStyle>
<Style TargetType="{x:Type syncfusion:GroupBarItem}" BasedOn="{StaticResource MetroGroupBarItemStyle}">
<Setter Property="HeaderText" Value="{Binding Header}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="IsExpanded" Value="True"/>
<Setter Property="Content" Value="{Binding}"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<syncfusion:GroupView Background="Transparent" ItemsSource="{Binding Content}">
<syncfusion:GroupView.ItemContainerStyle>
<Style TargetType="{x:Type syncfusion:GroupViewItem}" BasedOn="{StaticResource MetroGroupViewItemStyle}">
<Setter Property="Tag" Value="{Binding Tag}"/>
<Setter Property="Text" Value="{Binding Text}"/>
<Setter Property="ImageSource" Value="{Binding ImageSource}"/>
</Style>
</syncfusion:GroupView.ItemContainerStyle>
</syncfusion:GroupView>
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="IsSelected" Value="{Binding IsSelected}" />
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
</syncfusion:GroupBar.ItemContainerStyle>
what is the correct way to overwrite these styles?
Thanks in advance.
regards