| | |
| | | /// 窗帘动态控件 |
| | | /// </summary> |
| | | CurtainSeekBarOn curtainSeekBar; |
| | | /// <summary> |
| | | /// 窗帘进度减少按钮 |
| | | /// </summary> |
| | | Button btnMinusSignIcon; |
| | | /// <summary> |
| | | /// 窗帘进度增加按钮 |
| | | /// </summary> |
| | | Button btnPlusSgnIcon; |
| | | /// <summary> |
| | | /// 窗帘滑动控制 |
| | | /// </summary> |
| | | DiyImageSeekBar controlBar; |
| | | ///// <summary> |
| | | ///// 窗帘进度减少按钮 |
| | | ///// </summary> |
| | | //Button btnMinusSignIcon; |
| | | ///// <summary> |
| | | ///// 窗帘进度增加按钮 |
| | | ///// </summary> |
| | | //Button btnPlusSgnIcon; |
| | | ///// <summary> |
| | | ///// 窗帘滑动控制 |
| | | ///// </summary> |
| | | //DiyImageSeekBar controlBar; |
| | | /// <summary> |
| | | /// 窗帘关闭按钮 |
| | | /// </summary> |
| | |
| | | Height = Application.GetRealWidth(177), |
| | | Progress = curtain.percent, |
| | | ProgressTextColor =0x00000000, |
| | | //IsInvertedProgress = true, |
| | | IsInvertedProgress = true, |
| | | }; |
| | | controlView.AddChidren(curtainSeekBar); |
| | | |
| | | btnMinusSignIcon = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(406), |
| | | Width = Application.GetRealWidth(62), |
| | | Height = Application.GetMinRealAverage(24), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextID = StringId.PullOpen, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | Visible = false, |
| | | Enable = false, |
| | | }; |
| | | controlView.AddChidren(btnMinusSignIcon); |
| | | //btnMinusSignIcon = new Button() |
| | | //{ |
| | | // Y = Application.GetRealHeight(406), |
| | | // Width = Application.GetRealWidth(62), |
| | | // Height = Application.GetMinRealAverage(24), |
| | | // TextAlignment = TextAlignment.CenterRight, |
| | | // TextID = StringId.PullOpen, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // Visible = false, |
| | | // Enable = false, |
| | | //}; |
| | | //controlView.AddChidren(btnMinusSignIcon); |
| | | |
| | | controlBar = new DiyImageSeekBar() |
| | | { |
| | | X = btnMinusSignIcon.Right, |
| | | Y = Application.GetRealHeight(391),//414,设计数据 |
| | | Width = Application.GetRealWidth(180), |
| | | Height = Application.GetRealHeight(54), |
| | | SeekBarViewHeight = Application.GetRealHeight(8), |
| | | ThumbImagePath = "Public/ThumbImage.png", |
| | | ThumbImageHeight = Application.GetRealHeight(54), |
| | | ProgressBarColor = CSS_Color.MainColor, |
| | | ProgressTextColor = CSS_Color.FirstLevelTitleColor, |
| | | ProgressTextSize = 0x00000000, |
| | | MaxValue = 100, |
| | | Progress = 30, |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | Visible = false, |
| | | Enable = false, |
| | | }; |
| | | controlView.AddChidren(controlBar); |
| | | //controlBar = new DiyImageSeekBar() |
| | | //{ |
| | | // X = btnMinusSignIcon.Right, |
| | | // Y = Application.GetRealHeight(391),//414,设计数据 |
| | | // Width = Application.GetRealWidth(180), |
| | | // Height = Application.GetRealHeight(54), |
| | | // SeekBarViewHeight = Application.GetRealHeight(8), |
| | | // ThumbImagePath = "Public/ThumbImage.png", |
| | | // ThumbImageHeight = Application.GetRealHeight(54), |
| | | // ProgressBarColor = CSS_Color.MainColor, |
| | | // ProgressTextColor = CSS_Color.FirstLevelTitleColor, |
| | | // ProgressTextSize = 0x00000000, |
| | | // MaxValue = 100, |
| | | // Progress = 30, |
| | | // SeekBarPadding = Application.GetRealWidth(20), |
| | | // Visible = false, |
| | | // Enable = false, |
| | | //}; |
| | | //controlView.AddChidren(controlBar); |
| | | |
| | | btnPlusSgnIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(266), |
| | | Y = Application.GetRealHeight(406), |
| | | Width = Application.GetRealWidth(62), |
| | | Height = Application.GetRealWidth(24), |
| | | TextID = StringId.Shut, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | Visible = false, |
| | | Enable = false, |
| | | }; |
| | | controlView.AddChidren(btnPlusSgnIcon); |
| | | //btnPlusSgnIcon = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(266), |
| | | // Y = Application.GetRealHeight(406), |
| | | // Width = Application.GetRealWidth(62), |
| | | // Height = Application.GetRealWidth(24), |
| | | // TextID = StringId.Shut, |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // Visible = false, |
| | | // Enable = false, |
| | | //}; |
| | | //controlView.AddChidren(btnPlusSgnIcon); |
| | | |
| | | btnCurtainClose = new Button() |
| | | { |