question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NavigationView Bug in WinUI 2.6

See original GitHub issue

Describe 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 image

BUG in Version2, all the NavigationItem except “Bluetooth Audio” disappeared image

I could still found them in Visual Tree image

If I changed the PaneDisplayMode to “Left” (Hot reload XAML), All items reappear image

If I changed the PaneDisplayMode to “Top” again (Hot reload XAML), but indicator is on the left ??? image

And SettingButton is much wider like this image

And the animation is not correct… GIF 2021-6-25 16-01-12

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:

  1. Download the source code from my open source repo Source code
  2. Go to App.xaml, change ControlsResourcesVersion from “Version1” to “Version2” image
  3. Build and run “Package” project (Debug X64) in the solution
  4. 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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zhuxb711commented, Aug 18, 2021

@StephenLPeters I find the key code that lead to this issue finally. Please kindly check, thanks.

Application.Current.FocusVisualKind = FocusVisualKind.Reveal;

Demo: BugTest.zip

0reactions
StephenLPeterscommented, Nov 16, 2021

fixed by #6317

Read more comments on GitHub >

github_iconTop Results From Across the Web

In 100% scaling, WinUI 2.6 NavigationView settings icon is ...
Describe the bug In 100% scaling, navigation view's settings icon is blurry when it's opened. Steps to reproduce the bug Launch XAML control ......
Read more >
C# UWP: The parameter is incorrect - NavigationView
First of all, you could create a blank uwp app and only use NavigationView from WinUI 2.6.1 in this app to check if...
Read more >
WinUI Release Notes - Windows apps
The Windows UI Library (WinUI) is hosted on GitHub where we encourage you to file bug reports, feature requests and community code ...
Read more >
WinUI 3 Project Reunion 0.8 Preview (April 2021)
List of bugs fixed in WinUI 3 - Project Reunion 0.8 Preview ... NavigationView causes crash in UWP, Reunion 0.5 Preview.
Read more >
XAML Islands - NavigationView in a WPF app (Part 2) - YouTube
In Part 2, I'll add NavigationView control to the WPF window, ... 2.6 K views · 3 years ago ...more ... WinUI 3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found