예제 #1
0
        /// <summary>
        /// 设置子元素
        /// </summary>
        protected override void SetChildElements()
        {
            IonRefresher control = this.ControlHost.Content as IonRefresher;

            this.HtmlWriter.AddAttribute("pullingIcon", "arrow-dropdown");
            this.HtmlWriter.AddAttribute("pullingText", "下拉刷新");
            this.HtmlWriter.AddAttribute("refreshingSpinner", "circles");
            this.HtmlWriter.AddAttribute("refreshingText", "正在刷新...");
            this.HtmlWriter.RenderBeginTag("wm-refresher-content");
            this.HtmlWriter.RenderEndTag();
        }
예제 #2
0
        /// <summary>
        /// 设置属性
        /// </summary>
        protected override void SetAttributes()
        {
            IonRefresher control = this.ControlHost.Content as IonRefresher;
            //控件属性绑定
            string bindPropertyStr = BuildCommon.BuildControlBindProperty(control, this.ScreenDefinition, this.IsPreview);

            if (!string.IsNullOrEmpty(bindPropertyStr))
            {
                this.HtmlWriter.AddAttribute(bindPropertyStr, null);
            }

            base.SetAttributes();
        }