public static PageControlContainer GetPageControlContainer(this IPage page, PageControlContainerType type)
        {
            var result = page.Controls.OfType <PageControlContainer>().FirstOrDefault(c => c.Properties.ContainerType == type) ?? page.Controls.Insert(0, new PageControlContainer(indentationLevel: 0));

            result.Properties.ContainerType = type;
            return(result);
        }
 public PageControlContainer(int id = 0, int?indentationLevel = null, PageControlContainerType containerType = PageControlContainerType.ContentArea) : base(id, indentationLevel)
 {
     Properties = new PageControlContainerProperties(this);
     Properties.ContainerType = containerType;
 }