using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter { /// /// 做成一个提示有新消息的角标控件(置于指定控件的右上角) /// public class InformationTipView : ButtonBase { /// /// 做成一个提示有新消息的角标控件(置于指定控件的右上角) /// /// 目标控件 /// 角标大小 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; } } }