From fffd8afca5b69a592e9ba8913204f83f478e2f17 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期三, 06 五月 2020 17:28:35 +0800 Subject: [PATCH] 增加获取颜色接口(请合并代码) --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs new file mode 100755 index 0000000..7733c6f --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs @@ -0,0 +1,26 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter +{ + /// <summary> + /// 鍋氭垚涓�涓彁绀烘湁鏂版秷鎭殑瑙掓爣鎺т欢(缃簬鎸囧畾鎺т欢鐨勫彸涓婅) + /// </summary> + public class InformationTipView : ButtonBase + { + /// <summary> + /// 鍋氭垚涓�涓彁绀烘湁鏂版秷鎭殑瑙掓爣鎺т欢(缃簬鎸囧畾鎺т欢鐨勫彸涓婅) + /// </summary> + /// <param name="TargetView">鐩爣鎺т欢</param> + /// <param name="size">瑙掓爣澶у皬</param> + public InformationTipView(ButtonBase TargetView, int size = 30) + { + this.InitIconSize(size, size, true); + this.BackgroundColor = UserCenterColor.Current.Red; + this.Radius = (uint)this.GetPictrueRealSize(size) / 2; + this.X = TargetView.X + TargetView.Width / 2 + Application.GetRealWidth(10); + this.Y = TargetView.Y; + } + } +} -- Gitblit v1.8.0