Created
March 26, 2017 08:13
-
-
Save lukepothier/40342e7ecc48d977d9bcdd1870ab7aaa to your computer and use it in GitHub Desktop.
MvxConvertingTargetBinding for Android navigation views which have IMenu members
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an example for BottomNavigationView, but a similar TargetBinding should be largely the same for other Android NavigationViews. Implementation is the same as ever.
Binding statement:
yourBindingSet.Bind(YourNavigationView).For("YourBindingKey").To(vm => vm.YourCommand);
Command + navigation helpers:
Setup.cs:
registry.RegisterCustomBindingFactory<BottomNavigationView>("YourBindingKey", view => new BottomNavigationItemSelectedTargetBinding(view));