Exemplo n.º 1
0
 protected override void CreateChildItems(RadElement parent)
 {
     if (this.panelElement == null)
     {
         this.panelElement = new RadPanelElement();
     }
     parent.Children.Add((RadElement)this.panelElement);
 }
Exemplo n.º 2
0
        /// <summary>Creates the main panel element and adds it in the root element.</summary>
        protected override void CreateChildItems(RadElement parent)
        {
            if (this.panelElement == null)
            {
                this.panelElement = new RadPanelElement();
            }

            this.panelElement.AutoSizeMode = this.AutoSize ? RadAutoSizeMode.WrapAroundChildren : RadAutoSizeMode.FitToAvailableSize;

            this.RootElement.Children.Add(panelElement);
            base.CreateChildItems(parent);
        }