I'm trying to set a theme for all data grids in App.XAML, but receive cyclic reference error:
App.XAML:
<Application x:Class="MyApp"
...
<Application.Resources>
<Style TargetType="syncfusion:SfDataGrid">
<Setter Property="skinManager:SfSkinManager.VisualStyle" Value="Office2016Colorful" />
</Style>
Error details:
Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll
Additional information: 'Initialization of 'Syncfusion.UI.Xaml.Grid.SfDataGrid' threw an exception...
Inner exception:
{"Cyclic reference found while evaluating the Style property on element 'Syncfusion.UI.Xaml.Grid.SfDataGrid'."}
Is it generally possible to set a theme for some controls in the application level?