From 3272ca5b51e19f7f8a827b0f68400570a547fe60 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 28 四月 2020 15:02:44 +0800 Subject: [PATCH] 2020-04-28-1 --- ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs old mode 100644 new mode 100755 index 0f453b8..adac499 --- a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs @@ -52,7 +52,7 @@ { X = Application.GetRealWidth(58), Y = Application.GetRealHeight(184 + 200 + 280 + 40), - Height = Application.GetRealHeight(1920 - 40 - 184 - 280 - 200), + Height = Application.GetRealHeight(Method.H - 40 - 184 - 280 - 200), BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, }; @@ -313,8 +313,8 @@ var backgroundColor = new Button { - Width = Application.GetRealWidth(156), - Height = Application.GetRealHeight(180), + Width = Application.GetMinRealAverage(156), + Height = Application.GetMinRealAverage(180), X = Application.GetRealWidth(10), UnSelectedImagePath = "ZigeeLogic/deviceunselectedbackgroundcolor.png", SelectedImagePath = "ZigeeLogic/deviceselectedbackgroundcolor.png", @@ -394,7 +394,7 @@ Height = Application.GetMinRealAverage(112), X = Application.GetRealWidth(58), Y = Application.GetRealHeight(30 + 9), - // Radius = (uint)Application.GetRealHeight(56), + Radius = (uint)Application.GetMinRealAverage(56), BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, }; deviceFramelayout.AddChidren(bjFramelayout); @@ -411,8 +411,9 @@ Y = Application.GetRealHeight(30), Width = Application.GetRealWidth(850), Height = Application.GetRealHeight(130), - X = Application.GetRealWidth(176 + 10), - LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + X = Application.GetRealWidth(176 + 25), + //LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + LineColor = ZigbeeColor.Current.LogicBlankBackgroundColor, }; deviceFramelayout.AddChidren(deviceRow); var devicename = new Button @@ -424,6 +425,16 @@ TextSize = 14, }; deviceRow.AddChidren(devicename); + + var lineBtn = new Button + { + Y = deviceFramelayout.Height-1, + Height = 1, + Width = Application.GetRealWidth(850), + X = Application.GetRealWidth(176 + 25), + BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + }; + deviceFramelayout.AddChidren(lineBtn); EventHandler<MouseEventArgs> devicclick = (sen, e) => { clickbutton.IsSelected = false; -- Gitblit v1.8.0