public static void RegisterViewMembers() { MemberProvider.Register(AttachedBindingMember.CreateMember <UIView, object>(AttachedMemberConstants.Parent, (info, view) => ParentObserver.Get(view), (info, view, arg3) => ParentObserver.Set(view, arg3), (info, view, arg3) => ParentObserver.AddListener(view, arg3))); MemberProvider.Register(AttachedBindingMember.CreateMember <UIView, object>(AttachedMemberConstants.FindByNameMethod, FindViewByName)); MemberProvider.Register(AttachedBindingMember.CreateAutoProperty(AttachedMembers.UIView.Content, ContentChanged)); var member = AttachedBindingMember.CreateAutoProperty(AttachedMembers.UIView.ContentTemplateSelector, ContentTemplateChanged); MemberProvider.Register(member); MemberProvider.Register(typeof(UIView), AttachedMemberConstants.ContentTemplate, member, true); MemberProvider.Register(AttachedBindingMember.CreateMember(AttachedMembers.UIView.Visible, (info, view) => !view.Hidden, (info, view, arg3) => view.Hidden = !arg3)); }
private static IDisposable ObserveParentMember(IBindingMemberInfo bindingMemberInfo, Element o, IEventListener arg3) { return(ParentObserver.AddListener(o, arg3)); }