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);
|
}
|
}
|
}
|