using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace Shared.Phone
|
{
|
/// <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;
|
}
|
}
|
}
|