using System;
|
using Shared.Common;
|
namespace Shared.Phone.UserCenter
|
{
|
/// <summary>
|
/// 做成一个Tip控件
|
/// </summary>
|
public class TipViewControl : Tip
|
{
|
/// <summary>
|
/// 做成一个Tip控件
|
/// </summary>
|
/// <param name="text">文本信息</param>
|
/// <param name="maxWidth">最大宽度</param>
|
/// <param name="closeTime">关闭时间(秒)</param>
|
public TipViewControl(string text, int maxWidth = 1000, int closeTime = 3)
|
{
|
this.MaxWidth = Application.GetRealWidth(maxWidth);
|
this.Direction = AMPopTipDirection.None;
|
this.CloseTime = closeTime;
|
this.Text = text;
|
}
|
|
/// <summary>
|
/// 把控件显示出来
|
/// </summary>
|
public void ShowView()
|
{
|
this.Show(CommonPage.Instance);
|
}
|
|
|
}
|
}
|