Home > Blockchain >  MAUI Blazor - How to use static images
MAUI Blazor - How to use static images

Time:11-16

I'm testing the new .NET MAUI with Blazor, but I can't display images.

So I have 2 questions :

  • Which folder should I use ? Resources or wwwroot ?
  • How to display an image with an img tag : <img src=" ?? Which path ??">

Thanks in advance

CodePudding user response:

I've a folder in the wwwroot file, which is called Images.

enter image description here

The img tag is:

<img src="Images/YOURPICTURENAME.png" />
  • Related