黄学彪
2019-11-20 5174e95a428876018ce3372f3dbc24b2861ea472
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
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter
{
    /// <summary>
    /// 做成一个位于Rowlayout里面,最右边的文本显示控件.
    /// 初始值:控件上下居中,文字向右靠齐,标准字体及颜色
    /// </summary>
    public class RowMostRightTextView : ButtonBase
    {
        /// <summary>
        /// 做成一个位于Rowlayout里面,最右边的文本显示控件.
        /// 初始值:位置上下居中,文字向右靠齐,标准字体及颜色
        /// </summary>
        public RowMostRightTextView()
        {
            this.X = Application.GetRealWidth(700);
            this.Height = ControlCommonResourse.NormalControlHeight;
            this.Width = Application.GetRealWidth(320);
            this.TextAlignment = TextAlignment.CenterRight;
            this.Gravity = Gravity.CenterVertical;
        }
    }
}