MvvmCross / MvvmCross-AndroidSupport

Android support library packages for MvvmCross: The .NET MVVM framework for cross-platform solutions.
http://mvvmcross.com
15 stars 0 forks source link

ItemSelected is not binding on MvxAppCompatSpinner #171

Closed ghost closed 8 years ago

ghost commented 8 years ago

ItemSelected is not being bound. The exact same layout and code work for the non-appcompat version of MvxSpinner. Must be a bug in MvxAppCompatSpinnerSelectedItemBinding

ghost commented 8 years ago

I'm uncertain of the cause, I did a diff on the 2 widgets and the binding classes, everything is the same.

vvolkgang commented 8 years ago

In your Setup.cs

        protected override void FillTargetFactories(IMvxTargetBindingFactoryRegistry registry)
        {
            MvxAppCompatSetupHelper.FillTargetFactories(registry);
            base.FillTargetFactories(registry);
        }
ghost commented 8 years ago

@vvolkgang thanks, I was making a new registery in my setup constructor, which was wrong.