Uno.Themes
Uno.Themes copied to clipboard
Material theme doesn't show InfoBadge on NavigationViewItem
Current behavior
- MS WinUI 3 App with
NavigationViewItem
withInfoBadge
shows the badge as expected (theme is Fluent of course). - Uno WinUI Material head with
NavigationViewItem
withInfoBadge
doesn't show the badge. - Uno WinUI Material head with
Button
withInfoBadge
(code from Uno Gallery) shows the badge as expected.
So it looks like the problem might lie specifically within Material implementation of NavigationViewItem
's InfoBadge
.
Expected behavior
Uno WinUI Material head with NavigationViewItem
with InfoBadge
should show the badge.
How to reproduce it (as minimally and precisely as possible)
This code shows the badge on MS WinUI and doesn't show it on Uno Material WinUI:
<NavigationViewItem Icon="Mail" Content="Inbox">
<NavigationViewItem.InfoBadge>
<InfoBadge Value="5"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="5" />
</NavigationViewItem.InfoBadge>
</NavigationViewItem>
Environment
InfoBadge
within NavigationViewItem
is supported starting from WindowsAppSDK 1.2, the issue reproduces on the latest WindowsAppSDK 1.5.
Nuget Package:
Package Version(s):
Affected platform(s):
I tested it on WinUI and WPF heads, other heads are probably affected too.
- [ ] iOS
- [ ] Android
- [ ] WebAssembly
- [ ] UWP
- [ ] MacOS
Anything else we need to know?
Thanks for the issue @gevart
We will investigate and prioritize this along with general InfoBadge support in Material going forward!