private ObjectWriterFrame GetTopFrame()
        {
            if (this._stack.Depth == 0)
            {
                return(null);
            }
            XamlFrame currentFrame = this._stack.CurrentFrame;

            while (currentFrame.Depth > 1)
            {
                currentFrame = currentFrame.Previous;
            }
            return((ObjectWriterFrame)currentFrame);
        }
        // Consider replacing GetTopFrame with _rootFrame, _liveRootFrame
        private ObjectWriterFrame GetTopFrame()
        {
            if (_stack.Depth == 0)
            {
                return(null);
            }

            XamlFrame frame = _stack.CurrentFrame;

            while (frame.Depth > 1)
            {
                frame = frame.Previous;
            }
            return((ObjectWriterFrame)frame);
        }
Esempio n. 3
0
 // Copy constructor
 protected XamlFrame(XamlFrame source)
 {
     _depth = source._depth;
 }
 protected XamlFrame(XamlFrame source)
 {
     this._depth = source._depth;
 }