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)
2591if (!fo.IsValid && d != null) 2608if (!fo.IsValid && d != null)
System\Windows\FrameworkElement.cs (13)
1170Debug.Assert(startNode.IsValid || unlinkedParent != null, 1335if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1355if (fo.IsValid) 1381Debug.Assert(fo.IsValid, 1386hasParent = fo.IsValid; 1391if (fo.IsValid && TreeWalkHelper.SkipNow(fo.InheritanceBehavior)) 1476Debug.Assert(fo.IsValid, "Don't call FindTemplateResource with a target object that is neither a FrameworkElement nor a FrameworkContentElement"); 1478while (fo.IsValid) 1562if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 1576if (fo.IsValid && TreeWalkHelper.SkipNext(fo.InheritanceBehavior)) 2288return fo.IsValid; 2301return fo.IsValid; 2308if (fo.IsValid)
System\Windows\FrameworkElementFactory.cs (2)
673if (!treeNodeFO.IsValid) 682Debug.Assert( treeNodeFO.IsValid || (treeNodeVisual3D != null),
System\Windows\FrameworkTemplate.cs (1)
1171if (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)
213if (!fo.IsValid)
System\Windows\StyleHelper.cs (1)
2622Debug.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)