38 references to IsValid
PresentationFramework (38)
MS\Internal\FrameworkObject.cs (5)
242if (foParent.IsValid) 249if (foParent.IsValid) 280if (foParent.IsValid) 300while (!fo.IsValid && fo.DO != null) 1004if (parent.IsValid && parent.ShouldLookupImplicitStyles)
System\Windows\BroadcastEventHelper.cs (2)
573if (!fo.IsValid) 628if (fo.IsValid)
System\Windows\Data\BindingExpression.cs (2)
2623if (!fo.IsValid && d != null) 2638if (!fo.IsValid && d != null)
System\Windows\FrameworkElement.cs (13)
1177Debug.Assert(startNode.IsValid || unlinkedParent != null, 1342if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1362if (fo.IsValid) 1388Debug.Assert(fo.IsValid, 1393hasParent = fo.IsValid; 1398if (fo.IsValid && TreeWalkHelper.SkipNow(fo.InheritanceBehavior)) 1483Debug.Assert(fo.IsValid, "Don't call FindTemplateResource with a target object that is neither a FrameworkElement nor a FrameworkContentElement"); 1485while (fo.IsValid) 1569if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1583if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 2293return fo.IsValid; 2306return fo.IsValid; 2313if (fo.IsValid)
System\Windows\FrameworkElementFactory.cs (2)
675if (!treeNodeFO.IsValid) 684Debug.Assert( treeNodeFO.IsValid || (treeNodeVisual3D != null),
System\Windows\FrameworkTemplate.cs (1)
1166if (child.IsValid)
System\Windows\Generated\FrameworkContentElement.cs (4)
645if (toolTipFO.IsValid) 738return !fo.IsValid; 951if (foMentor.IsValid) 966if (foMentor.IsValid)
System\Windows\Generated\FrameworkElement.cs (4)
667if (toolTipFO.IsValid) 770return !fo.IsValid; 983if (foMentor.IsValid) 998if (foMentor.IsValid)
System\Windows\ResourceReferenceExpression.cs (1)
212if (!fo.IsValid)
System\Windows\StyleHelper.cs (1)
2620Debug.Assert(child.IsValid, "child should either be an FE or an FCE");
System\Windows\TreeWalkHelper.cs (3)
46if (!parentFO.IsValid) 913Debug.Assert(fo.IsValid, "Node with the resources change notification must be an FE or an FCE."); 1137if (fo.IsValid)