コード例 #1
0
ファイル: LayoutRoot.cs プロジェクト: pxg414/AvalonDock
 /// <summary>Standard class constructor</summary>
 public LayoutRoot()
 {
     RightSide  = new LayoutAnchorSide();
     LeftSide   = new LayoutAnchorSide();
     TopSide    = new LayoutAnchorSide();
     BottomSide = new LayoutAnchorSide();
     RootPanel  = new LayoutPanel(new LayoutDocumentPane());
 }
コード例 #2
0
        private void FillLayoutAnchorSide(XmlReader reader, LayoutAnchorSide layoutAnchorSide)
        {
            var result = new List <LayoutAnchorGroup>();

            while (true)
            {
                //Read all layoutAnchorSide children
                var element = ReadElement(reader) as LayoutAnchorGroup;
                if (element != null)
                {
                    result.Add(element);
                }
                else if (reader.NodeType == XmlNodeType.EndElement)
                {
                    break;
                }
            }

            reader.ReadEndElement();
            foreach (var las in result)
            {
                layoutAnchorSide.Children.Add(las);
            }
        }