黄学彪
2019-11-25 5727cf0b9b54da0a191dd1e23cb5abf21320fbff
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
35
36
37
38
39
40
41
42
43
44
45
using System;
using Shared;
namespace Shared.Phone.Device.Logic
{
    public class SelectedButton : Button
    {
 
        /// <summary>
        /// 横坐标位置
        /// </summary>
        /// <param name="Xwidth"></param>
        public SelectedButton(int Xwidth = 860)
        {
            X = Application.GetRealWidth(Xwidth);
            Width = Application.GetMinRealAverage(60);
            Height = Application.GetMinRealAverage(60);
            UnSelectedImagePath = "ZigeeLogic/selected.png";
            Visible = false;
            Gravity = Gravity.CenterVertical;
        }
        ///// <summary>
        ///// 横坐标位置
        ///// </summary>
        ///// <param name="Xwidth"></param>
        //public void SelectedBtnIcon(int Xwidth = 860)
        //{
        //    X = Application.GetRealWidth(Xwidth);
        //    Width = Application.GetMinRealAverage(60);
        //    Height = Application.GetMinRealAverage(60);
        //    UnSelectedImagePath = "ZigeeLogic/selected.png";
        //    Visible = false;
        //    Gravity = Gravity.CenterVertical;
        //}
        //public void BackBtnIcon()
        //{
        //    Width = Application.GetRealWidth(30);
        //    Height = Application.GetRealHeight(51);
        //    X = Application.GetRealWidth(58);
        //    Y = Application.GetRealHeight(98);
        //    //Gravity = Gravity.CenterVertical;
        //    UnSelectedImagePath = "ZigeeLogic/back.png";
        //}
 
    }
}