コード例 #1
0
        internal static void SetDisableHierarchyListener(this ViewGroup viewGroup, bool value)
        {
            if (!viewGroup.IsAlive())
            {
                return;
            }
            var member = BindingServiceProvider.MemberProvider.GetBindingMember(viewGroup.GetType(), AttachedMembers.ViewGroup.DisableHierarchyListener, false, false);

            if (member != null && member.CanWrite)
            {
                member.SetSingleValue(viewGroup, Empty.BooleanToObject(value));
            }
        }
コード例 #2
0
        internal static bool IsDisableHierarchyListener(this ViewGroup viewGroup)
        {
            if (!viewGroup.IsAlive())
            {
                return(false);
            }
            bool value;

            if (viewGroup.TryGetBindingMemberValue(AttachedMembers.ViewGroup.DisableHierarchyListener, out value))
            {
                return(value);
            }
            return(false);
        }