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