Reputation: 9
The issue is image is not display when i have created project MAUI. I am using .net 8 framework.
I have created by default simple project and also check downgrade the packages and also try to upgrade version but my issue is not resolved.
Upvotes: 0
Views: 536
Reputation: 9
I have updated Visual Studio Professional 2022 and i have used vs version 17.10.3 and i have also updated three libraries. CommunityToolkit.Maui(9.0.1), Microsoft.Maui.Controls(8.0.60) and Microsoft.Maui.Control.Compatibility(8.0.60).
##My previous visual studio version is 17.10.1 and CommunityToolkit.Maui(8.0.1), Microsoft.Maui.Controls(8.0.40) and Microsoft.Maui.Control.Compatibility(8.0.40).##
After updated my libraries and vs version issue is resolved automatically.
Upvotes: 0
Reputation: 692
For the issue that the image cannot be displayed in the MAUI Windows project, you need to confirm the following steps:
1.Image file is placed in the Resources->Images folder.
<ItemGroup> <MauiImage Update="Resources\Images\dotnet_bot.svg"/> </ItemGroup/>
<Image Source="dotnet_bot.png"/>
For more settings about image in MAUI, you can refer to MAUI Image.
Upvotes: 0