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