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