示例#1
0
        /// <summary>
        /// Adds a custom template as the progress template when the proggres label is a child control.
        /// </summary>
        protected override void CreateChildControls()
        {
            if (ProgressTemplate == null)
            {
                ProgressTemplate = new CustomTemplate();
            }

            base.CreateChildControls();
        }
示例#2
0
        /// <summary>
        /// Adds a custom tamplate as the proggress template.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ProgressTemplate = new CustomTemplate();
        }