NavigationView Pane Toggle Button Misaligned When Expanded and IsBackButtonVisible="Collapsed"
Describe the bug
When the NavigationView is in expanded mode and IsBackButtonVisible is set to Collapsed, the pane toggle button is not vertically centered relative to the NavigationView header area.
The alignment is correct in other states, so this appears to be a layout/styling bug.
Discussed in #333 with @66BA9Q-ME49
I'm talking of the pane toggle button. As you can see in the screenshot below, the pane toggle button of the WPF app is not centered to the NavigationView. In comparison, button of the WinUI3 app is properly centered.
![]()
Relevant Information
https://github.com/iNKORE-NET/UI.WPF.Modern/discussions/333#discussioncomment-14267719
Reproduction
Create a NavigationView with IsBackButtonVisible="Collapsed", or MRE download: https://github.com/iNKORE-NET/UI.WPF.Modern/discussions/333#discussioncomment-14263020
Suggested Solution
No response
Library Version
0.10.0
Operating System
Windows 11
Framework
.NET Core and .NET
Framework Version
(any)
Source of Package
NuGet.org (Package)
Additional Notes
No response
Validations
- [x] Check that there isn't already an issue that reports the same or similar problem.
- [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
- [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
- [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
- [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
- [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)