Microsoft.Maui.Controls.Element: Warning: Microsoft.Maui.Controls.SolidColorBrush

1 Answer 124 Views
DataGrid
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Clint asked on 30 Oct 2024, 12:38 AM

Telerik UI for MAUI 7.1, .NET 8.0

New .NET MAUI project. Added Telerik, added a DataGrid to XAML, I get the following when I try to run:

Microsoft.Maui.Controls.Element: Warning: Microsoft.Maui.Controls.SolidColorBrush is already a child of Telerik.Maui.Controls.RadBorder. Remove Microsoft.Maui.Controls.SolidColorBrush from Telerik.Maui.Controls.RadBorder before adding to Telerik.Maui.Controls.RadBorder.

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 30 Oct 2024, 06:54 AM

Hi Clint,

This is just a warning. Could you please share whether this warning affects the app build and run process?

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Clint
Top achievements
Rank 1
Iron
Iron
Iron
commented on 30 Oct 2024, 11:55 AM

Yes, the application will not run and breaks here. If I remove the Datagrid from the form, the application loads fine.
Didi
Telerik team
commented on 30 Oct 2024, 12:00 PM

Send me a sample app that crashes, so I can further research the behavior.
Clint
Top achievements
Rank 1
Iron
Iron
Iron
commented on 30 Oct 2024, 01:32 PM

Here's a sample. Removing the RadDataGrid allows this to run. I'm not sure that the SolidColorBrush warning is causing this, but I'm not getting much information other than the warning.
Clint
Top achievements
Rank 1
Iron
Iron
Iron
commented on 30 Oct 2024, 05:41 PM

Looks like I have a bigger issue with my Visual Studio Installation. I just downloaded the CryptoTracker sample application, it also crashes.
Didi
Telerik team
commented on 31 Oct 2024, 09:00 AM

Hi Clint,

I have tested the app and no issues, it works as expected. I have attached an image of the result.

The behavior could be related to a known issue with the SkiaSharp library we're using for the DataGrid rendering  - the exception is raised with the SkiaSharp when using WindowsSdkPackageVersion 10.0.19041.38 and above, here is the link to the issue on GitHub:

https://github.com/mono/SkiaSharp/issues/2999

There is a fix on this exception with the latest Windows SDK version, so you can also upgrade to "10.0.19041.54".

Add the following to the app .csproj file PropertyGroup:

<WindowsSdkPackageVersion>10.0.19041.54</WindowsSdkPackageVersion>

 and test whether this will solve the behavior.   
Tags
DataGrid
Asked by
Clint
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Didi
Telerik team
Share this question
or