Spike Baylor
11/02/2018, 9:59 PMobjectBinding
returns a Binding
and bindBidirectional
expects a Property
Spike Baylor
11/02/2018, 9:59 PMselectedNavigationItem
and the values of itemMap
are an enum that corresponds to the menu item.addamsson
11/02/2018, 10:15 PMSpike Baylor
11/02/2018, 10:19 PMselectedNavigationItem
. I want to correctly bind my listmenu to that model so that if the user clicks on a menu item it shows as the active item as usual and the model changes. That part works with bind
. But ideally i'd like to be able to change the NavigationViewModel::selectedNavigationItem
from elsewhere and have the active item in the listmenu update correctly as welladdamsson
11/02/2018, 10:21 PMListView
?Spike Baylor
11/02/2018, 10:22 PMaddamsson
11/02/2018, 10:22 PMaddamsson
11/02/2018, 10:22 PMbindBidirectional
instead of bind
?addamsson
11/02/2018, 10:23 PMBinding
Spike Baylor
11/02/2018, 10:24 PMobjectBinding
to map from what the menu uses and my enums. but that returns a Binding
and bindBidirectional needs a Property
Spike Baylor
11/02/2018, 10:25 PMaddamsson
11/02/2018, 10:25 PMProperty
because a Binding
is not a WritableValue
carlw
11/02/2018, 10:25 PMaddamsson
11/02/2018, 10:26 PMcarlw
11/02/2018, 10:27 PMSpike Baylor
11/02/2018, 10:28 PMSpike Baylor
11/02/2018, 10:28 PMaddamsson
11/02/2018, 10:34 PMSpike Baylor
11/02/2018, 10:34 PMbindBidirectional
needs a property, and i get why objectBinding
returns a Binding
... particularly because i'm only supplying it with a one way mapping from my menuitem to the enum. But I have to assume there is a way to do something like objectBinding
where i can specify both directions to map? so i can get a property out of itSpike Baylor
11/02/2018, 10:35 PMaddamsson
11/02/2018, 10:35 PMSpike Baylor
11/02/2018, 10:36 PMSpike Baylor
11/02/2018, 10:36 PMaddamsson
11/02/2018, 10:37 PMaddamsson
11/02/2018, 10:37 PMSpike Baylor
11/02/2018, 10:37 PMaddamsson
11/02/2018, 10:38 PMaddamsson
11/02/2018, 10:38 PMaddamsson
11/02/2018, 10:38 PMSpike Baylor
11/02/2018, 10:38 PM