dotnet / MobileBlazorBindings

Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
MIT License
1.2k stars 168 forks source link

Icon path is not working in AppShell.razor #407

Closed johnmangam closed 2 years ago

johnmangam commented 2 years ago

I'm using 0.6.69-preview of MBB

In the AppShell.razor the icon path is not recognized, I tried placing the png in wwwroot and also the project root folder as a content (build type).

`

... `
johnmangam commented 2 years ago

Sorry, I just referred the MMB Xaminals example and found that I need to use: Icon="@(new FileImageSource { File="paw.png" })

Thank you so much for those thoughtful samples.

Dreamescaper commented 2 years ago

Just an additional suggestion. Put that FileImageSource to the field instead of creating it razor directly - it will help to avoid visual glitches (we need to update that sample).

johnmangam commented 2 years ago

Thank you so much for the suggestion, @Dreamescaper