| | |
| | | frameBack.AddChidren(btnProgress1);
|
| | |
|
| | | //进度条
|
| | | var seekBar1 = new HorizontalSeekBar();
|
| | | var seekBar1 = new SeekBarControl();
|
| | | seekBar1.Y = Application.GetRealHeight(253);
|
| | | seekBar1.Gravity = Gravity.CenterHorizontal;
|
| | | seekBar1.Width = Application.GetRealWidth(962);
|
| | | seekBar1.Height = Application.GetRealHeight(81);
|
| | | seekBar1.Max = 100;
|
| | | seekBar1.BackgroundColor = 0xfff5f5f5;
|
| | | seekBar1.ThumbColor = Common.ZigbeeColor.Current.GXCButtonBlueColor;
|
| | | seekBar1.ProgressColor = 0xff3e99f4;
|
| | | seekBar1.Progress = energyModeInfo.level;
|
| | | seekBar1.ProgressBarColor = 0xff3e99f4;
|
| | | frameBack.AddChidren(seekBar1);
|
| | | seekBar1.ProgressChanged += (sender, value) =>
|
| | | seekBar1.ProgressChangedEvent += (div, value) =>
|
| | | {
|
| | | btnProgress1.Text = value + "%";
|
| | | //数据变更
|
| | | energyModeInfo.level = value;
|
| | | };
|
| | | seekBar1.Progress = energyModeInfo.level;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | |
| | | frameBack.AddChidren(btnProgress1);
|
| | |
|
| | | //进度条
|
| | | var seekBar1 = new HorizontalSeekBar();
|
| | | var seekBar1 = new SeekBarControl();
|
| | | seekBar1.Y = Application.GetRealHeight(147);
|
| | | seekBar1.Gravity = Gravity.CenterHorizontal;
|
| | | seekBar1.Width = Application.GetRealWidth(962);
|
| | | seekBar1.Height = Application.GetRealHeight(81);
|
| | | seekBar1.Max = 100;
|
| | | seekBar1.BackgroundColor = 0xfff5f5f5;
|
| | | seekBar1.ThumbColor = Common.ZigbeeColor.Current.GXCButtonBlueColor;
|
| | | seekBar1.ProgressColor = 0xfffdb500;
|
| | | seekBar1.Progress = linghtLevelInfo.panelDirectionsLevel;
|
| | | frameBack.AddChidren(seekBar1);
|
| | | seekBar1.ProgressChanged += (sender, value) =>
|
| | | seekBar1.ProgressChangedEvent += (div, value) =>
|
| | | {
|
| | | btnProgress1.Text = value + "%";
|
| | | //数据变更
|
| | | linghtLevelInfo.panelDirectionsLevel = value;
|
| | | };
|
| | | seekBar1.Progress = linghtLevelInfo.panelDirectionsLevel;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | |
| | | btnColor.BackgroundColor = backColor;
|
| | | frameColor.AddChidren(btnColor, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | //变更滑动条的颜色
|
| | | seekBar1.ProgressBarColor = backColor;
|
| | |
|
| | | var btnRight = new NormalViewControl(Application.GetMinRealAverage(58), Application.GetMinRealAverage(58), false);
|
| | | btnRight.UnSelectedImagePath = "Item/Next.png";
|
| | | btnRight.X = frameColor.Width - Application.GetMinRealAverage(58);
|
| | |
| | | this.keyColorData.CloseColorB = Convert.ToString(Bcolor, 16);
|
| | |
|
| | | btnColor.BackgroundColor = this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor);
|
| | | //变更滑动条的颜色
|
| | | seekBar1.ProgressBarColor = btnColor.BackgroundColor;
|
| | | };
|
| | | };
|
| | | }
|
| | |
| | | frameBack.AddChidren(btnProgress1);
|
| | |
|
| | | //进度条
|
| | | var seekBar1 = new HorizontalSeekBar();
|
| | | var seekBar1 = new SeekBarControl();
|
| | | seekBar1.Y = Application.GetRealHeight(147);
|
| | | seekBar1.Gravity = Gravity.CenterHorizontal;
|
| | | seekBar1.Width = Application.GetRealWidth(962);
|
| | | seekBar1.Height = Application.GetRealHeight(81);
|
| | | seekBar1.Max = 100;
|
| | | seekBar1.BackgroundColor = 0xfff5f5f5;
|
| | | seekBar1.ThumbColor = Common.ZigbeeColor.Current.GXCButtonBlueColor;
|
| | | seekBar1.ProgressColor = 0xff2b62fd;
|
| | | seekBar1.Progress = linghtLevelInfo.panelBacklightLevel;
|
| | | frameBack.AddChidren(seekBar1);
|
| | | seekBar1.ProgressChanged += (sender, value) =>
|
| | | seekBar1.ProgressChangedEvent += (div, value) =>
|
| | | {
|
| | | btnProgress1.Text = value + "%";
|
| | | //数据变更
|
| | | linghtLevelInfo.panelBacklightLevel = value;
|
| | | };
|
| | | seekBar1.Progress = linghtLevelInfo.panelBacklightLevel;
|
| | |
|
| | | var btnTemp1 = new NormalViewControl(200, 49, true);
|
| | | btnTemp1.X = ControlCommonResourse.XXLeft;
|
| | |
| | | btnColor.BackgroundColor = backColor;
|
| | | frameColor.AddChidren(btnColor, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | //变更滑动条的颜色
|
| | | seekBar1.ProgressBarColor = backColor;
|
| | |
|
| | | var btnRight = new NormalViewControl(Application.GetMinRealAverage(58), Application.GetMinRealAverage(58), false);
|
| | | btnRight.UnSelectedImagePath = "Item/Next.png";
|
| | | btnRight.X = frameColor.Width - Application.GetMinRealAverage(58);
|
| | |
| | | this.keyColorData.OpenColorG = Convert.ToString(Gcolor, 16);
|
| | | this.keyColorData.OpenColorB = Convert.ToString(Bcolor, 16);
|
| | |
|
| | | btnColor.BackgroundColor= this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor);
|
| | | btnColor.BackgroundColor = this.GetColorByRGB((byte)Rcolor, (byte)Gcolor, (byte)Bcolor);
|
| | | //变更滑动条的颜色
|
| | | seekBar1.ProgressBarColor = btnColor.BackgroundColor;
|
| | | };
|
| | | };
|
| | | }
|