NavigationView Bug in WinUI 2.6
See original GitHub issueDescribe the bug I’m not quite sure what caused the problem But this only in “Version2” and Set NavigationView.PaneDisplayMode=“Top”
ControlsResourcesVersion="Version2"
Normal in Version1
BUG in Version2, all the NavigationItem except “Bluetooth Audio” disappeared
I could still found them in Visual Tree
If I changed the PaneDisplayMode to “Left” (Hot reload XAML), All items reappear
If I changed the PaneDisplayMode to “Top” again (Hot reload XAML), but indicator is on the left ???
And SettingButton is much wider like this
And the animation is not correct…
I created a blank application and used the same controls. But they work perfectly. So It’s very confused, is anything wrong?
If anyone could help me look at this issue, I would be very grateful. Thanks.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Download the source code from my open source repo Source code
- Go to App.xaml, change ControlsResourcesVersion from “Version1” to “Version2”
- Build and run “Package” project (Debug X64) in the solution
- NavigationView is in MainPage.xaml Line 353
Expected behavior Should be same as WinUI 2.5 Or WinUI 2.6 Version1
Version Info
NuGet package version: [Microsoft.UI.Xaml 2.6.0]
Windows app type:
UWP | Win32 |
---|---|
Yes |
Windows 10 version | Saw the problem? |
---|---|
Insider Build (xxxxx) | |
October 2020 Update (19042) | Yes |
May 2020 Update (19041) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | |
October 2018 Update (17763) | |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Xbox | |
Surface Hub | |
IoT |
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
@StephenLPeters I find the key code that lead to this issue finally. Please kindly check, thanks.
Demo: BugTest.zip
fixed by #6317