/// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            var header = new AccordionContentHeaderPanel();

            this.Header.InstantiateIn(header);
            this.Controls.Clear();
            this.Controls.Add(header);

            /*if (this.TabIndex == 0)
             * {
             *  var container = new AccordionContentPanel(true);
             *  this.Content.InstantiateIn(container);
             *  this.Controls.Add(container);
             * }
             * else
             * {*/
            var container = new AccordionContentPanel();

            this.Content.InstantiateIn(container);
            this.Controls.Add(container);
            //}
        }
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            var header = new AccordionContentHeaderPanel();
            this.Header.InstantiateIn(header);
            this.Controls.Clear();
            this.Controls.Add(header);

            /*if (this.TabIndex == 0)
            {
                var container = new AccordionContentPanel(true);
                this.Content.InstantiateIn(container);
                this.Controls.Add(container);
            }
            else
            {*/
            var container = new AccordionContentPanel();
            this.Content.InstantiateIn(container);
            this.Controls.Add(container);
            //}
        }