38 references to IsValid
PresentationFramework (38)
src\Framework\MS\Internal\FrameworkObject.cs (5)
273if (foParent.IsValid) 280if (foParent.IsValid) 311if (foParent.IsValid) 331while (!fo.IsValid && fo.DO != null) 1035if (parent.IsValid && parent.ShouldLookupImplicitStyles)
src\Framework\System\Windows\BroadcastEventHelper.cs (2)
577if (!fo.IsValid) 632if (fo.IsValid)
src\Framework\System\Windows\Data\BindingExpression.cs (2)
2608if (!fo.IsValid && d != null) 2623if (!fo.IsValid && d != null)
src\Framework\System\Windows\FrameworkElement.cs (13)
1187Debug.Assert(startNode.IsValid || unlinkedParent != null, 1352if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1372if (fo.IsValid) 1398Debug.Assert(fo.IsValid, 1403hasParent = fo.IsValid; 1408if (fo.IsValid && TreeWalkHelper.SkipNow(fo.InheritanceBehavior)) 1493Debug.Assert(fo.IsValid, "Don't call FindTemplateResource with a target object that is neither a FrameworkElement nor a FrameworkContentElement"); 1495while (fo.IsValid) 1579if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1593if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 2301return fo.IsValid; 2314return fo.IsValid; 2321if (fo.IsValid)
src\Framework\System\Windows\FrameworkElementFactory.cs (2)
705if (!treeNodeFO.IsValid) 714Debug.Assert( treeNodeFO.IsValid || (treeNodeVisual3D != null),
src\Framework\System\Windows\FrameworkTemplate.cs (1)
1200if (child.IsValid)
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (4)
664if (toolTipFO.IsValid) 757return !fo.IsValid; 970if (foMentor.IsValid) 985if (foMentor.IsValid)
src\Framework\System\Windows\Generated\FrameworkElement.cs (4)
684if (toolTipFO.IsValid) 787return !fo.IsValid; 1000if (foMentor.IsValid) 1015if (foMentor.IsValid)
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
220if (!fo.IsValid)
src\Framework\System\Windows\StyleHelper.cs (1)
2626Debug.Assert(child.IsValid, "child should either be an FE or an FCE");
src\Framework\System\Windows\TreeWalkHelper.cs (3)
49if (!parentFO.IsValid) 912Debug.Assert(fo.IsValid, "Node with the resources change notification must be an FE or an FCE."); 1136if (fo.IsValid)