38 references to IsValid
PresentationFramework (38)
MS\Internal\FrameworkObject.cs (5)
241if (foParent.IsValid) 248if (foParent.IsValid) 279if (foParent.IsValid) 299while (!fo.IsValid && fo.DO != null) 1003if (parent.IsValid && parent.ShouldLookupImplicitStyles)
System\Windows\BroadcastEventHelper.cs (2)
572if (!fo.IsValid) 627if (fo.IsValid)
System\Windows\Data\BindingExpression.cs (2)
2585if (!fo.IsValid && d != null) 2602if (!fo.IsValid && d != null)
System\Windows\FrameworkElement.cs (13)
1166Debug.Assert(startNode.IsValid || unlinkedParent != null, 1331if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1351if (fo.IsValid) 1377Debug.Assert(fo.IsValid, 1382hasParent = fo.IsValid; 1387if (fo.IsValid && TreeWalkHelper.SkipNow(fo.InheritanceBehavior)) 1472Debug.Assert(fo.IsValid, "Don't call FindTemplateResource with a target object that is neither a FrameworkElement nor a FrameworkContentElement"); 1474while (fo.IsValid) 1558if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1572if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 2284return fo.IsValid; 2297return fo.IsValid; 2304if (fo.IsValid)
System\Windows\FrameworkElementFactory.cs (2)
672if (!treeNodeFO.IsValid) 681Debug.Assert( treeNodeFO.IsValid || (treeNodeVisual3D != null),
System\Windows\FrameworkTemplate.cs (1)
1157if (child.IsValid)
System\Windows\Generated\FrameworkContentElement.cs (4)
644if (toolTipFO.IsValid) 737return !fo.IsValid; 950if (foMentor.IsValid) 965if (foMentor.IsValid)
System\Windows\Generated\FrameworkElement.cs (4)
664if (toolTipFO.IsValid) 767return !fo.IsValid; 980if (foMentor.IsValid) 995if (foMentor.IsValid)
System\Windows\ResourceReferenceExpression.cs (1)
212if (!fo.IsValid)
System\Windows\StyleHelper.cs (1)
2612Debug.Assert(child.IsValid, "child should either be an FE or an FCE");
System\Windows\TreeWalkHelper.cs (3)
45if (!parentFO.IsValid) 909Debug.Assert(fo.IsValid, "Node with the resources change notification must be an FE or an FCE."); 1133if (fo.IsValid)