From ddb46a700775aacfb6cc82d9586302a38c8fa0a7 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 23 十二月 2019 09:13:37 +0800 Subject: [PATCH] 2019.12.23 --- ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs index 15e1e78..58cc755 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs @@ -41,8 +41,10 @@ #endregion - public LeftIconButtonRow(int width,int height) + public LeftIconButtonRow(int width,int height, int x = 0, int y = 0) { + X = x; + Y = y; Width = Application.GetRealWidth(width); Height = Application.GetRealHeight(height); } @@ -79,7 +81,8 @@ Text = title, TextAlignment = TextAlignment.CenterLeft, Gravity = Gravity.CenterVertical, - Tag = this.Tag + Tag = this.Tag, + TextSize=14 }; AddChidren(TitleButton); @@ -108,22 +111,21 @@ { IconButton.IsSelected = statu; TitleButton.IsSelected = statu; + TitleButton.IsBold = statu; } /// <summary> /// 閫変腑 /// </summary> public void SetSelectedStatu() { - IconButton.IsSelected = true; - TitleButton.IsSelected = true; + SetStatu(true); } /// <summary> /// 涓嶉�変腑 /// </summary> public void SetUnSelectedStatu() { - IconButton.IsSelected = false; - TitleButton.IsSelected = false; + SetStatu(false); } #endregion } -- Gitblit v1.8.0