Combine writing in XAML with defining MenuItemsSource for some specific NavigationMenuItem #8369
Unanswered
dawnchan030920
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
There's a
NavigationView
with someNavigationViewMenuItem
written in XAML. At the same time, I also have anObservableCollection
bound to aNavigationViewMenuItem
'sMenuItems
.Problem
Since there's no
MenuItemTemplate
property forNavigationViewMenuItem
, I have no idea what to do. It seems that I have to write a selector that will require me to hard-codeNavigatoinView
's items type by projecting them to platform independent model and transform the items all into collections to bind them.Question
Is there a best practice or some "standard" solution towards it?
Sorry for my poor English /(ㄒoㄒ)/~~ Really appreciate your help~
Beta Was this translation helpful? Give feedback.
All reactions