I'm using the SfDataGrid and everything works well until I try to run unit tests on the UserControl that contains the datagrid, then I get the following error:
System.Windows.Markup.XamlParseException: 'The invocation of the constructor on type 'Syncfusion.UI.Xaml.Grid.SfDataGrid' that matches the specified binding constraints threw an exception.' Line number '25' and line position '10'. ---> System.TypeInitializationException: The type initializer for 'Syncfusion.UI.Xaml.Grid.SfDataGrid' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
I'm not sure why this is happening as the test used to work just fine.