Proposal: NavigationView should expose lightweight styling resources to customize the margin of the NavigationViewItem's IconBox in Top pane display mode #2924
Labels
area-NavigationView
NavView control
feature proposal
New feature proposal
team-Controls
Issue for the Controls team
Proposal: NavigationView should expose lightweight styling resources to customize the margin of the NavigationViewItem's IconBox in Top pane display mode
Summary
The NavigationView right now only exposes a lightweight-styling resource to set the margin of the NavigationViewItem's IconBox in Left pane display mode:
microsoft-ui-xaml/dev/NavigationView/NavigationView_rs1_themeresources.xaml
Line 682 in 8aaf7f8
A corresponding resource for the Top pane display mode is currently missing:
microsoft-ui-xaml/dev/NavigationView/NavigationView_rs1_themeresources.xaml
Line 1140 in 8aaf7f8
This proposal aims to close the gap by introducing two new resources:
While the naming scheme differs from the existing resource in Left pane display mode - which is named
NavigationViewItemOnLeftIconBoxMargin
- that naming scheme used there is inconsistent with the naming scheme used by the vast majority of the other NavigationView theme resources. The prefixes "NavigationView" or "TopNavigationView" are overwhelmingly used to distinguish between specific theme resources for the NavigationView in Left mode and in Top mode, respectively. (Issue #2906 has been created to track the task to provide a consistent lightweight styling experience for the NavigationView.) As such, I suggest we follow the commonly used naming scheme here for these two proposed resources (instead of introducing them using a naming scheme which means they will potentially have to be updated in the future).The text was updated successfully, but these errors were encountered: