You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Symbol Icon Home not showed in WASM NavigationViewItem #2834
UWP local machine start will show Home and Accept SymbolIcons. WASM IIS Express start will show Accept SymbolIncon but blank instead of Home SymbolIcon.
changed the title [-]Symbol Icon Home not showed in WASM NavigationViewItem[/-][+]Symbol Icon Home not showed in WASM NavigationItem[/+]on Mar 19, 2020
changed the title [-]Symbol Icon Home not showed in WASM NavigationItem[/-][+]Symbol Icon Home not showed in WASM NavigationViewItem[/+]on Mar 19, 2020
I see. The font used by Uno is not the same one as the one Microsoft uses in UWP (a license issue) and that icon may not be as the same character as original one.
I see. The font used by Uno is not the same one as the one Microsoft uses in UWP (a license issue) and that icon may not be as the same character as original one.
Home was set as the default symbol in the SymbolIcon.Symbol dependency property but the inner FontIcon.Glyph property was not set.
The PR fixes this issue, and set the Emoji as the default symbol (like in the SymbolIcon UWP class).
Activity
[-]Symbol Icon Home not showed in WASM NavigationViewItem[/-][+]Symbol Icon Home not showed in WASM NavigationItem[/+][-]Symbol Icon Home not showed in WASM NavigationItem[/-][+]Symbol Icon Home not showed in WASM NavigationViewItem[/+]jeromelaban commentedon Mar 20, 2020
Thanks for the issue. This may be related to Fonts. Could you provide a screenshot of the sample you are using ?
Here's the sample in the playground: https://playground.platform.uno/#5d7156cd
SERWare commentedon Mar 20, 2020
I'm testing WASM on Chrome and Microsoft Edge (not yet Chromium version).
NOTE. I'm using Spanish Versions.
WASM Sample with blank instead of Home Icon
UWP Sample showing Home Icon
SERWare commentedon Mar 21, 2020
Maybe not related but there's another WASM NavigationView problem: Header not shown.
Header in Uno WASM PlayGround:
No Header when IIS Express executed:
jeromelaban commentedon Mar 21, 2020
I see. The font used by Uno is not the same one as the one Microsoft uses in UWP (a license issue) and that icon may not be as the same character as original one.
It looks like we'll need to make a mapping here:
uno/src/Uno.UI/UI/Xaml/Controls/FontIcon/FontIcon.cs
Line 58 in d10ec02
when the open symbols font is used.
SERWare commentedon Mar 21, 2020
First, simple turnaround that works in WASM: programmatically create the icon with:
new SymbolIcon(Symbol.Home)Do we need to make the mapping as users or will it be included in any Uno library?
Thanks
jeromelaban commentedon Mar 21, 2020
This is an interesting finding. Adding Home explicitly should have the same effect as creating a
SymbolIcon. This may hide another issue then.SERWare commentedon Mar 21, 2020
I don't know... this test is NavigationView generated in code and assigned to Page.Content after InitializeComponent. It shows the Home icon.
kakone commentedon Apr 17, 2020
Home was set as the default symbol in the SymbolIcon.Symbol dependency property but the inner FontIcon.Glyph property was not set.
The PR fixes this issue, and set the Emoji as the default symbol (like in the SymbolIcon UWP class).
jeromelaban commentedon Apr 17, 2020
Let's close this issue in favor of #3011, as the is original issue for what's mentioned in this one.
SERWare commentedon Apr 17, 2020
Ok, thank you.
kakone commentedon Apr 17, 2020
I'm not agree, it's not the same problem. As you said : "This may hide another issue then". And it is, there is a bug in the SymbolIcon class.
jeromelaban commentedon Apr 17, 2020
You're right, I'll reopen this issue!