/// <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(); }
/// <summary> /// 设置子元素 /// </summary> protected override void SetChildElements() { IonSegmentButton control = this.ControlHost.Content as IonSegmentButton; this.HtmlWriter.WriteEncodedText(this.ControlHost.Title); }