Reputation: 1573
I have an app that has been running on MvvmCross 3 for about a year. I decided to go for the update and use version 4. I have worked through most of the issues, but I am hung up on the following error:
'MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry' does not contain a definition for 'RegisterCustomBindingFactory' and no extension method 'RegisterCustomBindingFactory' accepting a first argument of type 'MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry' could be found (are you missing a using directive or an assembly reference?)
In my Setup.cs I have this
protected override void FillTargetFactories(
MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
{
base.FillTargetFactories(registry);
registry.RegisterCustomBindingFactory<EditText>("FocusText",
textView => new MvxEditTextFocusBinding(textView));
registry.RegisterCustomBindingFactory<EditText>("FocusChange",
editText => new MvxEditTextFocusChangeBinding(editText));
}
Is there a replacement for RegisterCustomBindingFactory
?
Upvotes: 1
Views: 210
Reputation: 1573
PlaceHold3r was correct. I hadn't included
using MvvmCross.Binding.Bindings.Target.Construction;
so the name space was missing.
Upvotes: 2