Open gevart opened 7 months ago
NavigationViewItem
InfoBadge
Button
So it looks like the problem might lie specifically within Material implementation of NavigationViewItem's InfoBadge.
Uno WinUI Material head with NavigationViewItem with InfoBadge should show the badge.
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>
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.
Thanks for the issue @gevart
We will investigate and prioritize this along with general InfoBadge support in Material going forward!
Current behavior
NavigationViewItem
withInfoBadge
shows the badge as expected (theme is Fluent of course).NavigationViewItem
withInfoBadge
doesn't show the badge.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
'sInfoBadge
.Expected behavior
Uno WinUI Material head with
NavigationViewItem
withInfoBadge
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:
Environment
InfoBadge
withinNavigationViewItem
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.
Anything else we need to know?