protected internal override void RemoveChild(INode child) { base.RemoveChild(child); if (child == _rootElement) { _rootElement = null; } }
protected internal override void AddChild(INode child) { base.AddChild(child); if (child is ISilverlightElement) { _rootElement = (ISilverlightElement)child; } }