Ejemplo n.º 1
0
 protected override void FillTargetFactories(IMvxTargetBindingFactoryRegistry registry)
 {
     base.FillTargetFactories(registry);
     registry.RegisterFactory(new MvxCustomBindingFactory <EditTextRightSpinner>("SelectedItem", spinner => new EditTextRightSpinnerSelectedItemBinding(spinner)));
     registry.RegisterFactory(new MvxCustomBindingFactory <EditTextSpinner>("SelectedItem", spinner => new EditTextSpinnerSelectedItemBinding(spinner)));
     registry.RegisterFactory(new MvxCustomBindingFactory <EditTextLeftImage>("CreditCardNumber", editTextLeftImage => new EditTextCreditCardNumberBinding(editTextLeftImage)));
     registry.RegisterFactory(new MvxCustomBindingFactory <ListViewCell>("IsBottom", cell => new CellItemBinding(cell, CellItemBindingProperty.IsBottom)));
     registry.RegisterFactory(new MvxCustomBindingFactory <ListViewCell>("IsTop", cell => new CellItemBinding(cell, CellItemBindingProperty.IsTop)));
     CustomBindingsLoader.Load(registry);
 }
Ejemplo n.º 2
0
 protected override void FillTargetFactories(IMvxTargetBindingFactoryRegistry registry)
 {
     base.FillTargetFactories(registry);
     registry.RegisterFactory(new MvxSimplePropertyInfoTargetBindingFactory(typeof(MvxUITextViewTargetBinding), typeof(UITextView), "Text"));
     CustomBindingsLoader.Load(registry);
 }