Closed HavenDV closed 2 years ago
It seems that this padding is intentional, the NavigationViewHeaderMargin
resource which defines the margin around the header is set to 56,44,0,0
which would explain the gap at the top. I'm not sure if this is intentional or not but this was introduced with #4779. @karenbtlai maybe you can tell more about this and how to possibly resolve this?
Yes, the extra padding is intentional and part of our app design guidance. The reason is because design-wise, we wish for the header to be aligned with the hamburger menu. This is so that NavView components follow a set "grid system", where elements are not all slightly misaligned to some extent.
If you really wish to change the margin, you can override NavigationViewHeaderMargin
to revert this change.
Describe the bug
Current behavior
I'm not sure what exactly the problem is. The problem is either indentation or default vertical alignment. This showed up after updating to 3.11.0-dev.242 from about 3.10.0-dev.500
Expected behavior
Steps to reproduce the bug
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Expected behavior
No response
Screenshots
No response
NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
Device form factor
Desktop
Windows version
May 2021 Update (19043)
Additional context
Package Version(s):
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
Problems appears after upgrade Microsoft.UI.Xaml from 2.6.0-prerelease.210430001 to 2.6.0