From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 25 十二月 2019 11:21:06 +0800
Subject: [PATCH] 2019.12.25
---
ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs
index 15e1e78..b009368 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/LeftIconButtonRow.cs
@@ -18,6 +18,10 @@
/// </summary>
public FrameLayout Line;
/// <summary>
+ /// ClickBtn
+ /// </summary>
+ public Button ClickBtn;
+ /// <summary>
/// v_Selected
/// </summary>
private bool v_Selected;
@@ -41,8 +45,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 +85,8 @@
Text = title,
TextAlignment = TextAlignment.CenterLeft,
Gravity = Gravity.CenterVertical,
- Tag = this.Tag
+ Tag = this.Tag,
+ TextSize=14
};
AddChidren(TitleButton);
@@ -95,6 +102,10 @@
{
AddChidren(Line);
}
+
+ ClickBtn = new Button { Tag = this.Tag };
+ AddChidren(ClickBtn);
+
}
#endregion
@@ -108,23 +119,32 @@
{
IconButton.IsSelected = statu;
TitleButton.IsSelected = statu;
+ TitleButton.IsBold = statu;
+ ClickBtn.IsSelected = 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);
}
+ /// <summary>
+ /// HidenLine
+ /// </summary>
+ /// <param name="statu"></param>
+ public void HidenLine(bool statu)
+ {
+ Line.Visible = !statu;
+ }
+
#endregion
}
}
--
Gitblit v1.8.0