| | |
| | | { |
| | | |
| | | #region 控件集合 |
| | | FrameLayout bodyView; |
| | | static RelayPage bodyView; |
| | | /// <summary> |
| | | /// 控制界面加载区域 |
| | | /// </summary> |
| | |
| | | BackgroundColor = CSS_Color.PromptingColor2, |
| | | SelectedBackgroundColor= CSS_Color.AuxiliaryColor1, |
| | | Radius = (uint)Application.GetRealWidth(40), |
| | | IsSelected = light.on_off != 0 |
| | | IsSelected = light.on_off == "on" |
| | | }; |
| | | controlView.AddChidren(btnSwitchIcon); |
| | | |
| | |
| | | Height = Application.GetMinRealAverage(40), |
| | | UnSelectedImagePath = "Public/PowerClose.png", |
| | | SelectedImagePath = "Public/PowerOpen.png", |
| | | IsSelected = light.on_off != 0 |
| | | IsSelected = light.on_off == "on" |
| | | }; |
| | | controlView.AddChidren(btnSwitch); |
| | | |