Replies: 1 comment
-
I'll answer my own question. Since this project aims to model WinUI's Fluent theme, the answer is "no". wuxc:NavigationView |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking a PR #759 that I had canceled because of formatting issues and considering to re-implement it. However, thinking anew,
NavigationView
holds two collectons:MenuItems
andMenuFooterItems
both of these with with item typeNavigationViewItem
. It's a bit cumbersome to manage one collection, asItemsControl
does, let alone two. AlsoItemsControl
comes with some other goodies like templating. If the purpose of these collections is to visually separate them, you can still accomplish this with a single collection, say with propertyNavgationItems
by adding toNavigationViewItem
propertyMenuType
(enum with Values None/Footer). Then in applytemplate you can try to filter the Items into two different views. maybe like this:Even if this code doesn't work there's lots of workarounds. The app dev would then write their xaml like so:
So essentially it'd break everyone's code, but on the plus side you get to leverage the framework's templating, for greater user ui customization.
Worth coding or nah?
Beta Was this translation helpful? Give feedback.
All reactions