| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | Tag = "categoryAddScene"; |
| | | } |
| | | public override void RemoveFromParent() |
| | | { |
| | | base.RemoveFromParent(); |
| | | } |
| | | /// <summary> |
| | | /// 显示灯光的详细设置界面 默认-1(新增-默认开),0关 ,1开 |
| | | /// </summary> |
| | |
| | | public void Show(DeviceUI device, string targetDeviceID="", int state=-1, bool isFromRoom = false) |
| | | { |
| | | #region topview |
| | | var topBGView = new FrameLayout()
{
Height = Application.GetRealHeight(CommonPage.Navigation_Height),
BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor
};
AddChidren(topBGView);
var topView = new FrameLayout()
{
Y = Application.GetRealHeight(CommonPage.NavigationTitle_Y),
Height = Application.GetRealHeight(CommonPage.Navigation_Height - CommonPage.NavigationTitle_Y),
BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor,
};
AddChidren(topView); |
| | | var topBGView = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(CommonPage.Navigation_Height), |
| | | BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor |
| | | }; |
| | | AddChidren(topBGView); |
| | | var topView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(CommonPage.NavigationTitle_Y), |
| | | Height = Application.GetRealHeight(CommonPage.Navigation_Height - CommonPage.NavigationTitle_Y), |
| | | BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor, |
| | | }; |
| | | AddChidren(topView); |
| | | |
| | | var title = new Button() |
| | | { |
| | |
| | | Gravity = Gravity.CenterHorizontal |
| | | }; |
| | | topView.AddChidren(title); |
| | | var back = new Device.CommonForm.BackButton() { };
topView.AddChidren(back); |
| | | var back = new Device.CommonForm.BackButton() { }; |
| | | topView.AddChidren(back); |
| | | back.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | this.RemoveFromParent(); |
| | |
| | | }; |
| | | dimmingRowView.AddChidren(dimmingNextBtn); |
| | | |
| | | var confirmBtn = new CommonForm.CompleteButton() { }; |
| | | var confirmBtn = new CommonForm.CompleteButton(1,2,3); |
| | | AddChidren(confirmBtn); |
| | | if (state == -1) |
| | | { |