Binding doesn’t work properly #2275
Unanswered
GWawrzeniecki
asked this question in
WPF
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I have a WPF application where I use mahapps and of course prism.
I have a HamburgerMenu where I used a region in HamburgerMenuItemCollection. To that regions I add a HamburgerMenuGlyphItem.
My problem is that the View for GlyphItem constantly is using the MainWindowViewModel not the VM for the GlyphItemView but I have set ViewModelLocationProvider for that view and VM.
Everything is described here - https://stackoverflow.com/questions/65236963/wpf-prism-binding-in-hamburgermenu-via-regions-doesnt-work
okay I researched that HamburgerMenuGlyphItem doesn't have a DataContext so I use a DataTemplate and VM as a View and it worked as I want.
Beta Was this translation helpful? Give feedback.
All reactions