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)); } }
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); }