From c7698e163e43cea9e7f8ee45f8e3f91c9265cca4 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 04 十一月 2019 19:11:41 +0800 Subject: [PATCH] 合并了全部的代码 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs index cfe003b..6248e90 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs @@ -112,12 +112,17 @@ else if (i == 1) { btnText.Text = Language.StringByID(R.MyInternationalizationString.FrozenUser); - btnRight.X = Application.GetRealWidth(50); - btnRight.Y = Application.GetRealHeight(32); - btnRight.Height = Application.GetRealHeight(63); - btnRight.Width = Application.GetRealWidth(104); - btnRight.UnSelectedImagePath = "DoorLock/Switch.png"; - btnRight.SelectedImagePath = "DoorLock/SwitchOn.png"; + btnRight.Height = Application.GetRealHeight(0); + var btnSwitch = new Button() + { + X = Application.GetRealWidth(50), + Y = Application.GetRealHeight(32), + Height = Application.GetRealHeight(60), + Width = Application.GetRealWidth(60), + UnSelectedImagePath = "DoorLock/Switch.png", + SelectedImagePath = "DoorLock/SwitchOn.png", + }; + btnRightFrameLayout.AddChidren(btnSwitch); } else if (i == 2) { @@ -143,6 +148,7 @@ } else if (currentIndex == 1) { + btnRight.IsSelected = !btnRight.IsSelected; } else if (currentIndex == 2) { -- Gitblit v1.8.0