We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

syncfusion:DataGridStyle in App.xaml Resource directory - exception on windows

according to your Documenation ' Styling in .NET MAUI DataGrid control | Syncfusion ' i can use this and link it up to the needed sfDataGrid. 


             xmlns:syncfusion="http://schemas.syncfusion.com/maui"


   

<syncfusion:DataGridStyle x:Key="sfGridDefaultStyle"
                                  RowTextColor="{AppThemeBinding Light={StaticResource PrimaryColorLight}, Dark={StaticResource PrimaryColorDark}}"
                                  HeaderRowBackground="{AppThemeBinding Light={StaticResource SecondaryColorLight}, Dark={StaticResource SecondaryColorDark}}"
                                  HeaderRowTextColor="{AppThemeBinding Light={StaticResource PrimaryColorLight}, Dark={StaticResource PrimaryColorDark}}"/>


this seem to work on MacOS fine, but when i start the Maui App on windows I get the following error


Microsoft.Maui.Controls.Xaml.XamlParseException: 'Position 89:14. Type syncfusion:DataGridStyle not found in xmlns http://schemas.syncfusion.com/maui' 

2 Replies

AN Andreas January 14, 2023 07:47 PM UTC

using this using instead, fixed the issue on windows


             xmlns:sfGrid="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid"






AK Ashok Kuvaraja Syncfusion Team January 16, 2023 05:56 AM UTC

Hi Andreas,


We hope the namespace changes have resolved your reported issue as you said. If you require any other assistance on this, please let us know. We will be happy to help.


Regards,

Ashok


Loader.
Up arrow icon