示例#1
0
        /// <summary>
        /// 设置属性
        /// </summary>
        protected override void SetAttributes()
        {
            IonSegmentButton control = this.ControlHost.Content as IonSegmentButton;

            if (!string.IsNullOrEmpty(control.Value))
            {
                this.HtmlWriter.AddAttribute("value", control.Value);
            }

            base.SetAttributes();
        }
示例#2
0
        /// <summary>
        /// 设置子元素
        /// </summary>
        protected override void SetChildElements()
        {
            IonSegmentButton control = this.ControlHost.Content as IonSegmentButton;

            this.HtmlWriter.WriteEncodedText(this.ControlHost.Title);
        }