| | |
| | | this.Height = Application.GetMinRealAverage(207);
|
| | | this.Width = Application.GetMinRealAverage(207);
|
| | | this.BackgroundColor = UserCenterColor.Current.White;
|
| | | this.Radius = (uint)Application.GetMinRealAverage(207);
|
| | | this.Radius = (uint)Application.GetMinRealAverage(207) / 2;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | //第二层底色
|
| | | var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
|
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184);
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2);
|
| | |
|
| | | //设备图标
|
| | | btnIcon = new NormalViewControl(Application.GetMinRealAverage(121), Application.GetMinRealAverage(121), false);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | this.AddChidren(btnIcon);
|
| | | }
|
| | |
|
| | |
| | | //第二层底色
|
| | | var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
|
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184);
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2);
|
| | |
|
| | |
| | | if (this.deviceMac != null)
|
| | | {
|
| | | //刷新图标
|
| | | Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | }
|
| | | else
|
| | | {
|