| | |
| | | /// Complete button. |
| | | /// <para>默认文字: 完成 </para> |
| | | /// <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. |
| | | /// CompleteButton |
| | | /// </summary> |
| | | public CompleteButton() |
| | | /// <param name="y"></param> |
| | | /// <param name="width"></param> |
| | | /// <param name="height"></param> |
| | | public CompleteButton(int y, int width, int height) |
| | | { |
| | | this.Y = Application.GetRealHeight(y); |
| | | this.Width = Application.GetRealWidth(width); |
| | | this.Height = Application.GetRealHeight(height); |
| | | TextID = R.MyInternationalizationString.Complete; |
| | | BackgroundColor = ZigbeeColor.Current.GXCButtonBlueColor; |
| | | BackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor; |
| | | 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); |
| | | Radius = (uint)Application.GetRealHeight(height / 2); |
| | | } |
| | | /// <summary> |
| | | /// SetTitle |
| | | /// </summary> |
| | | /// <param name="title"></param> |
| | | public void SetTitle(string title) |
| | | { |
| | | Text = title; |
| | | } |
| | | /// <summary> |
| | | /// SetTitle |
| | | /// </summary> |
| | | /// <param name="title"></param> |
| | | public void SetTitle(int title) |
| | | { |
| | | SetTitle(Language.StringByID(title)); |
| | | } |
| | | } |
| | | } |