2 writes to Depth
System.Xaml (2)
System\Xaml\Context\ObjectWriterContext.cs (2)
477_stack.Depth--; 483_stack.Depth++;
10 references to Depth
System.Xaml (10)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (4)
27Debug.Assert(CurrentFrame.Depth == Depth); 33_depth = source.Depth; 110Debug.Assert(CurrentFrame.Depth == Depth); 123Debug.Assert(CurrentFrame.Depth == Depth);
System\Xaml\Context\ObjectWriterContext.cs (4)
63_savedDepth = _stack.Depth; 71_savedDepth = _stack.Depth - 1; 496get { return _stack.Depth; } 782if (_stack.Depth == 0)
System\Xaml\Context\XamlParserContext.cs (2)
296if (AllowProtectedMembersOnRoot && _stack.Depth == 1) 306get { return _stack.CurrentFrame.XamlType is not null && _stack.Depth == 1; }