/// <summary> /// 设置子元素 /// </summary> protected override void SetChildElements() { IonContentText control = this.ControlHost.Content as IonContentText; if (!string.IsNullOrEmpty(control.Value)) { this.HtmlWriter.WriteEncodedText(control.Value); } else { //控件值绑定 string bindPropertyStr = BuildCommon.BuildControlBindTextProp(control, this.ScreenDefinition, this.IsPreview); if (!string.IsNullOrEmpty(bindPropertyStr)) { this.HtmlWriter.WriteEncodedText(bindPropertyStr); } } }
/// <summary> /// 设置属性 /// </summary> protected override void SetAttributes() { IonContentText control = this.ControlHost.Content as IonContentText; base.SetAttributes(); }