public bool Load(IModuleContext context) { if (context.PlatformInfo.Platform == PlatformType.Android) { BindingServiceProvider.Initialize(errorProvider: new AndroidBindingErrorProvider(), converter: BindingConverterExtensions.Convert); BindingServiceProvider.BindingProvider.DefaultBehaviors.Add(DisableEqualityCheckingBehavior.TargetTrueNotTwoWay); BindingResourceExtensions.Initialize(); } AndroidToolkitExtensions.ItemsSourceAdapterFactory = (o, ctx, arg3) => new ItemsSourceAdapter(o, ctx, !ReferenceEquals(ViewGroupItemsSourceGenerator.Context, arg3)); context.TryRegisterDataTemplateSelectorsAndValueConverters(null); MugenMvvmToolkit.Binding.AttachedMembersRegistration.RegisterDefaultMembers(); if (AndroidToolkitExtensions.IsApiGreaterThanOrEqualTo14) { var isActionBar = AndroidToolkitExtensions.IsActionBar; var isFragment = AndroidToolkitExtensions.IsFragment; AndroidToolkitExtensions.IsActionBar = o => isActionBar(o) || o is ActionBar; AndroidToolkitExtensions.IsFragment = o => isFragment(o) || o is Fragment; AttachedMembersRegistration.RegisterActionBarBaseMembers(); AttachedMembersRegistration.RegisterActionBarMembers(); AttachedMembersRegistration.RegisterActionBarTabMembers(); } AttachedMembersRegistration.RegisterObjectMembers(); AttachedMembersRegistration.RegisterViewBaseMembers(); AttachedMembersRegistration.RegisterViewMembers(); AttachedMembersRegistration.RegisterDialogMembers(); AttachedMembersRegistration.RegisterActivityMembers(); AttachedMembersRegistration.RegisterRatingBarMembers(); AttachedMembersRegistration.RegisterAdapterViewBaseMembers(); AttachedMembersRegistration.RegisterAdapterViewMembers(); AttachedMembersRegistration.RegisterViewGroupMembers(); AttachedMembersRegistration.RegisterTabHostMembers(); AttachedMembersRegistration.RegisterTextViewMembers(); AttachedMembersRegistration.RegisterAutoCompleteTextViewMembers(); AttachedMembersRegistration.RegisterDatePickerMembers(); AttachedMembersRegistration.RegisterTimePickerMembers(); AttachedMembersRegistration.RegisterImageViewMembers(); AttachedMembersRegistration.RegisterToolbarMembers(); AttachedMembersRegistration.RegisterButtonMembers(); AttachedMembersRegistration.RegisterCompoundButtonMembers(); AttachedMembersRegistration.RegisterSeekBarMembers(); AttachedMembersRegistration.RegisterMenuMembers(); AttachedMembersRegistration.RegisterMenuItemBaseMembers(); AttachedMembersRegistration.RegisterMenuItemMembers(); AttachedMembersRegistration.RegisterPopupMenuMembers(); AttachedMembersRegistration.RegisterMenuItemActionViewMembers(); AttachedMembersRegistration.RegisterMenuItemActionProviderMembers(); AttachedMembersRegistration.RegisterSearchViewMembers(); return(true); }