From 993ecf49ae04ccea89f6bc4a32cfc0c45def1215 Mon Sep 17 00:00:00 2001 From: 温居城 <wenjucheng@wenjuchengdeMacBook-Pro.local> Date: 星期三, 27 十月 2021 14:23:30 +0800 Subject: [PATCH] 2021-10-27-01 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs new file mode 100644 index 0000000..ed4989c --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/BackViewControl.cs @@ -0,0 +1,46 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter +{ + /// <summary> + /// 鍋氭垚涓�涓猅opFrameLayout鐨勮繑鍥為敭鉁� + /// </summary> + public class BackViewControl : FrameLayoutStatuControl + { + /// <summary> + /// 鍥炬爣瀹藉害 + /// </summary> + private int iconWidth = 30; + + /// <summary> + /// 鍋氭垚涓�涓猅opFrameLayout鐨勮繑鍥為敭鉁� + /// </summary> + public BackViewControl() + { + this.UseClickStatu = false; + this.Name = "btnBack"; + this.X = ControlCommonResourse.XXLeft - Application.GetRealWidth((110 - iconWidth) / 2); + this.Width = this.GetPictrueRealSize(110); + this.Height = this.GetPictrueRealSize(110); + this.Gravity = Gravity.CenterVertical; + } + + /// <summary> + /// 鍒濆鍖� + /// </summary> + public void InitControl() + { + var btnIcon = new ButtonBase(); + btnIcon.Width = this.GetPictrueRealSize(30); + btnIcon.Height = this.GetPictrueRealSize(51); + btnIcon.UnSelectedImagePath = "Item/Back.png"; + btnIcon.Gravity = Gravity.Center; + + this.AddChidren(btnIcon, ChidrenBindMode.BindEvent); + //杩欏紶鍥剧墖濂藉儚寰堢壒娈�,鏃犳硶灞呬腑 + btnIcon.Y += Application.GetRealHeight(5); + } + } +} -- Gitblit v1.8.0