xm
2019-07-16 b910cb79c9b5bcc204022a3cf9e6950f0a64dfbd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
        }
 
 
    }
}