I'd like to use the panel bar and have the SelectedItem property bound to a property in my data context (I'm using an MVVM pattern and the ViewModel will be the data context for the view).
The XAML is:
The code behind specifies the datacontext:
And the Menu_ViewModel() class takes care of the property:
When I add a breakpoint to my setter, it never gets hit. Any ideas?
(I have also tried using a dependency property, but this didn't work either)
What types will the property be?
Does TwoWay binding work on the SelectedItem property?