MauiIcons suport .NET8 #77
-
I've implemented the MauiIcons as instructed, but is seems to throw the follwing error: Funny enough if i comment out this part of the code, run the app, and then uncomment, it works fine :P |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Seems like url namespace issue of Maui is not fixed yet. As a workaround, you can new up the Maui icon instance in code behind. Here's how you can new up the Maui icons, In the constructor of mainpage.xaml.cs or app.xaml.cs, you can add discarded instance of Maui icon just like below example public MainPage()
{
InitializeComponent();
// Temporary Workaround for url styled namespace in xaml
_ = new MauiIcon();
} Also, Thanks for reporting this issue, will update readme with this workaround |
Beta Was this translation helpful? Give feedback.
Seems like url namespace issue of Maui is not fixed yet.
dotnet/maui#7503
As a workaround, you can new up the Maui icon instance in code behind.
Here's how you can new up the Maui icons,
In the constructor of mainpage.xaml.cs or app.xaml.cs, you can add discarded instance of Maui icon just like below example