-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NavigationViewItem content clipping regression in 2.4.x #2541
Comments
@ranjeshj: not sure if it's the same issue. It repros with with items under |
The root issue is that the we now enforce a margin for the Content presenter, which results in 16px to the right of the content to allow the Expand chevron for hierarchical NavigationViewItems to always be completely visible and not block the NavigationViewItems content. The question would be: How do we enforce that the expand/collapse chevron has enough space while also not clipping the content of the NavViewItems in Compact. |
As the expand/collapse chevron is not shown in compact mode with pane closed, we can utilize the work done in PR #2342 to restore the ContentPresenter margin to its value seen in WinUI 2.3 (and below) |
Describe the bug
NavigationViewItem clips its internal contents in 2.4.x much more than 2.3.x. This makes it very difficult to render custom elements in NavigationViewItem alongside standard NavigationViewItem icons. The problem is visible when the NavigationViewItem is in collapsed mode.
The following are screenshots of the NavigationView's PaneFooter:
2.3.2:
2.4.2:
Steps to reproduce the bug
Steps to reproduce the behavior: use this XAML as a NavigationView footer, and compare results between 2.3.x and 2.4.x:
Expected behavior
Clipping behavior in 2.3.x seems much more sane.
Screenshots
See above
Version Info
Comparing 2.3.200213001 and 2.4.2.
The text was updated successfully, but these errors were encountered: