/// <summary>Standard class constructor</summary> public LayoutRoot() { RightSide = new LayoutAnchorSide(); LeftSide = new LayoutAnchorSide(); TopSide = new LayoutAnchorSide(); BottomSide = new LayoutAnchorSide(); RootPanel = new LayoutPanel(new LayoutDocumentPane()); }
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); } }