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