17 references to Depth
PresentationFramework (17)
src\Framework\System\Windows\FrameworkTemplate.cs (1)
1033
bool isInsideNameScope = Names.
Depth
> 0 && (IsNameScope(Names.CurrentFrame.Type) || Names.CurrentFrame.InsideNameScope);
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (2)
180
if (stack.
Depth
== 0 || stack.CurrentFrame.Type != null)
395
if (stack.
Depth
!= 0 && stack.CurrentFrame.Type == null)
src\Framework\System\Windows\TemplateContent.cs (10)
118
if (
Depth
> 0)
127
if (
Depth
== 0 || CurrentFrame.Type != null)
143
if (
Depth
> 0)
152
if (
Depth
== 0 || CurrentFrame.Type != null)
225
if (Stack != null && Stack.
Depth
> 0)
494
if (stack.
Depth
> 0 &&
522
if (stack.
Depth
> 0 &&
565
if (TemplateLoadData.RootName == null && stack.
Depth
== 1)
795
if (stack.
Depth
> 0 && stack.CurrentFrame.NameSet == false && stack.CurrentFrame.Type != null && !stack.CurrentFrame.IsInNameScope)
1027
if (frames.
Depth
== 1)
src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (4)
25
Debug.Assert(CurrentFrame.Depth ==
Depth
);
31
_depth = source.
Depth
;
107
Debug.Assert(CurrentFrame.Depth ==
Depth
);
120
Debug.Assert(CurrentFrame.Depth ==
Depth
);