Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote
When using Theme in ResourceDictionary accordingly to documentation, sfDataGrid crashes application. Dark or light theme, with or without binding to data, doesn't matter, grid crashes . I have tried grid with own DataGridStyle and still crashes.

Tested with Xam 3.4 and 3.6, Sf 17.0.1.38, uwp and android

app.xaml:

xmlns:syncTheme="clr-namespace:Syncfusion.XForms.Themes;assembly=Syncfusion.Core.XForms"

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <syncTheme:SyncfusionThemeDictionary>
                    <syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
                        <syncTheme:DarkTheme />
                    </syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
                </syncTheme:SyncfusionThemeDictionary>

Exception:

{System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.SfDataGrid.XForms.ThemeGridStyle.OnDataGridBackgroundColorChanged(BindableObject bindable, Object oldValue, Object newValue)
   at Xamarin.Forms.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
   at Xamarin.Forms.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
   at Xamarin.Forms.Element.OnSetDynamicResource(BindableProperty property, String key)
   at Xamarin.Forms.BindableObject.SetDynamicResource(BindableProperty property, String key, Boolean fromStyle)
   at Syncfusion.SfDataGrid.XForms.ThemeGridStyle..ctor()
   at Syncfusion.SfDataGrid.XForms.SfDataGrid.Syncfusion.XForms.Themes.IThemeElement.OnControlThemeChanged(String oldTheme, String newTheme)
   at Syncfusion.XForms.Themes.ThemeElement.OnControlThemeChanged(BindableObject bindable, Object oldValue, Object newValue)
   at Xamarin.Forms.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
   at Xamarin.Forms.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
   at Xamarin.Forms.Element.OnSetDynamicResource(BindableProperty property, String key)
   at Xamarin.Forms.BindableObject.SetDynamicResource(BindableProperty property, String key, Boolean fromStyle)
   at Xamarin.Forms.Element.SetDynamicResource(BindableProperty property, String key)
   at Syncfusion.XForms.Themes.ThemeElement.InitializeThemeResources(Element element, String controlKey)
   at Syncfusion.SfDataGrid.XForms.SfDataGrid..ctor()
   at sfThemingTest.Views.GridPage.InitializeComponent()
   at sfThemingTest.Views.GridPage..ctor()
   at sfThemingTest.Views.MainPage.<NavigateFromMenu>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at sfThemingTest.Views.MenuPage.<<-ctor>b__3_0>d.MoveNext()}