using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter
{
///
/// 做成一个位于指定控件右上角,进行提示的小型圆形红圈
///
public class TopRightTipIcon : ButtonCommon
{
///
/// 做成一个位于指定控件右上角,进行提示的小型圆形红圈
///
/// 控件大小,理论值
/// 指定位于哪个控件的右上角
/// 是否计算真实值
public TopRightTipIcon(View viewContr, int size = 60, bool real = false)
{
this.InitAvgSize(size, size, real);
this.Radius = (uint)size / 2;
this.BackgroundColor = UserCenterColor.Current.Red;
this.X = viewContr.Right - size / 2;
this.Y = viewContr.Y - size / 2;
this.TextAlignment = TextAlignment.Center;
this.TextColor = UserCenterColor.Current.White;
}
}
}