黄学彪
2019-09-30 404cdc88627f942df7944af04ee05b9d527752d6
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
using System;
using Shared.Common;
namespace Shared.Phone.Device.CommonForm
{
    /// <summary>
    /// Complete button.
    /// <para>默认文字: 完成 </para>
    /// <para>白色字体</para>
    /// <para>蓝色背景</para>
    /// <para>文字居中</para>
    /// <para>默认字号大小</para>
    /// </summary>
    public class CompleteButton:Button
    {
        private readonly int Button_Height = 110;
        private readonly int Button_Width = 750;
        private readonly int Button_Y = CommonPage.AppRealHeight - 300;
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Shared.Phone.Device.CommonForm.CompleteButton"/> class.
        /// </summary>
        public CompleteButton()
        {
            TextID = R.MyInternationalizationString.Complete;
            BackgroundColor = ZigbeeColor.Current.GXCButtonBlueColor;
            TextColor = ZigbeeColor.Current.GXCTextWhiteColor;
            Height = Application.GetRealHeight(Button_Height);
            Width = Application.GetRealWidth(Button_Width);
            Gravity = Gravity.CenterHorizontal;
            Radius = (uint)Application.GetRealHeight(Button_Height/2);
            Y = Application.GetRealHeight(Button_Y);
        }
    }
}