From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 21 七月 2020 09:46:53 +0800
Subject: [PATCH] 请合并最新多功能面板代码

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TopView.cs |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TopView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TopView.cs
new file mode 100755
index 0000000..2ae0f43
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TopView.cs
@@ -0,0 +1,115 @@
+锘縰sing System;
+using System.Collections.Generic;
+using Shared.Common;
+using Shared.R;
+using ZigBee.Device;
+namespace Shared.Phone.Device.Logic
+{
+    public class TopView
+    {
+        #region 鏈�涓婇潰閭e潡鎺т欢
+        /// <summary>
+        /// 鏈�涓婇潰鍧梀iew
+        /// </summary>
+        public RowLayout topRowLayout = new RowLayout
+        {
+            BackgroundColor = ZigbeeColor.Current.LogicTopBackgroundColor,
+            Height = Application.GetRealHeight(184),
+            LineColor = ZigbeeColor.Current.LogicRowLayoutTopLineColor,
+        };
+        /// <summary>
+        /// 鏍囬Btn
+        /// </summary>
+        public Button toptitleNameBtn = new Button
+        {
+            TextSize = 17,
+            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+            TextAlignment = TextAlignment.CenterLeft,
+            X = Application.GetRealWidth(176),
+            Width = Application.GetRealWidth(600),
+            Height = Application.GetRealHeight(69),
+            Y = Application.GetRealHeight(92),
+            IsBold = true
+        };
+       
+        /// <summary>
+        /// 鍚庨��Btn
+        /// </summary>
+        public Button backBtn = new Button
+        {
+            Width = Application.GetRealWidth(30),
+            Height = Application.GetRealHeight(51),
+            X = Application.GetRealWidth(81),
+            Y = Application.GetRealHeight(98),
+            //Gravity = Gravity.CenterVertical;
+            UnSelectedImagePath = "ZigeeLogic/back.png",
+        };
+        /// <summary>
+        /// 澧炲姞鐑敭澶у皬Btn
+        /// </summary>
+        public Button clickBtn = new Button
+        {
+            Width = Application.GetRealWidth(81 + 51),
+            Height = Application.GetRealHeight(58 + 40),
+            Y = Application.GetRealHeight(98 - 40),
+        };
+
+
+
+        /// <summary>
+        /// 鏄剧ず灞傛ゼBtn
+        /// </summary>
+        public Button foolrnameBtn = new Button
+        {
+            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+            TextAlignment = TextAlignment.CenterRight,
+            X = Application.GetRealWidth(1080 - 400 - 120),
+            Width = Application.GetRealWidth(400),
+            Height = Application.GetRealHeight(69),
+            Y = Application.GetRealHeight(92),
+            Text = Config.Instance.Home.GetCurrentFloorName,
+        };
+        /// <summary>
+        /// 涓嬫媺鍥炬爣Btn
+        /// </summary>
+        public Button dropdownBtn = new Button
+        {
+            TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+            TextAlignment = TextAlignment.CenterRight,
+            X = Application.GetRealWidth(1080 - 120),
+            Width = Application.GetRealWidth(72),
+            Height = Application.GetRealHeight(72),
+            Y = Application.GetRealHeight(92),
+            UnSelectedImagePath = "ZigeeLogic/drop-down.png",
+        };
+        /// <summary>
+        /// 澧炲姞鐑敭澶у皬Btn
+        /// </summary>
+        public Button foolrclickBtn = new Button
+        {
+            Width = Application.GetRealWidth(400 + 120),
+            Height = Application.GetRealHeight(72),
+            Y = Application.GetRealHeight(92),
+            X = Application.GetRealWidth(1080 - 400 - 120),
+        };
+        /// <summary>
+        /// 鏈�涓婇潰鐨勯偅鍧楁柟娉�
+        /// </summary>
+        /// <param name="yes"></param>
+        /// <returns></returns>
+        public RowLayout TopRowView(bool yes = false)
+        {
+            topRowLayout.AddChidren(toptitleNameBtn);
+            topRowLayout.AddChidren(backBtn);
+            topRowLayout.AddChidren(clickBtn);
+            if (yes)
+            {
+                topRowLayout.AddChidren(foolrnameBtn);
+                topRowLayout.AddChidren(dropdownBtn);
+                topRowLayout.AddChidren(foolrclickBtn);
+            }
+            return topRowLayout;
+        }
+        #endregion
+    }
+}

--
Gitblit v1.8.0