public bool Load(IModuleContext context) { TouchToolkitExtensions.TableViewSourceFactory = (o, ctx) => new ItemsSourceTableViewSource(o); TouchToolkitExtensions.CollectionViewSourceFactory = (o, ctx) => new ItemsSourceCollectionViewSource(o); if (context.PlatformInfo.Platform == PlatformType.iOS) { BindingServiceProvider.Initialize(errorProvider: new TouchBindingErrorProvider(), converter: BindingConverterExtensions.Convert); } context.TryRegisterDataTemplateSelectorsAndValueConverters(null); MugenMvvmToolkit.Binding.AttachedMembersRegistration.RegisterDefaultMembers(); var converter = new BooleanToCheckmarkAccessoryConverter(); BindingServiceProvider.ResourceResolver.AddConverter("BooleanToCheckmark", converter); BindingServiceProvider.ResourceResolver.AddConverter("BoolToCheckmark", converter); BindingServiceProvider.BindingProvider.DefaultBehaviors.Add(DisableEqualityCheckingBehavior.TargetTrueNotTwoWay); AttachedMembersRegistration.RegisterObjectMembers(); AttachedMembersRegistration.RegisterViewMembers(); AttachedMembersRegistration.RegisterSegmentedControlMembers(); AttachedMembersRegistration.RegisterButtonMembers(); AttachedMembersRegistration.RegisterDatePickerMembers(); AttachedMembersRegistration.RegisterSwitchMembers(); AttachedMembersRegistration.RegisterControlMembers(); AttachedMembersRegistration.RegisterTextFieldMembers(); AttachedMembersRegistration.RegisterTextViewMembers(); AttachedMembersRegistration.RegisterLabelMembers(); AttachedMembersRegistration.RegisterBaseViewControllerMembers(); AttachedMembersRegistration.RegisterViewControllerMembers(); AttachedMembersRegistration.RegisterTabBarControllerMembers(); AttachedMembersRegistration.RegisterSplitViewControllerMembers(); AttachedMembersRegistration.RegisterToolbarMembers(); AttachedMembersRegistration.RegisterPickerViewMembers(); AttachedMembersRegistration.RegisterBarButtonItemMembers(); AttachedMembersRegistration.RegisterSearchBarMembers(); AttachedMembersRegistration.RegisterSliderMembers(); AttachedMembersRegistration.RegisterProgressViewMembers(); AttachedMembersRegistration.RegisterCollectionViewMembers(); AttachedMembersRegistration.RegisterCollectionViewCellMembers(); AttachedMembersRegistration.RegisterDialogElementMembers(); AttachedMembersRegistration.RegisterDialogEntryElementMembers(); AttachedMembersRegistration.RegisterStringElementMembers(); AttachedMembersRegistration.RegisterTableViewMembers(); AttachedMembersRegistration.RegisterTableViewCellMembers(); return(true); }