| | |
| | | btnBackGroud.Gravity = Gravity.CenterHorizontal;
|
| | | btnBackGroud.UnSelectedImagePath = "Item/Category_FunctionBG.png";
|
| | | btnBackGroud.SelectedImagePath = "Item/Category_FunctionBGSelected.png";
|
| | | this.AddChidren(btnBackGroud, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnBackGroud, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备图标
|
| | | this.btnDeviceIcon = new IconViewControl(84);
|
| | |
| | | btnDeviceIcon.UnSelectedImagePath = unSelectPath;
|
| | | btnDeviceIcon.SelectedImagePath = selectPath;
|
| | | btnDeviceIcon.Gravity = Gravity.CenterHorizontal;
|
| | | this.AddChidren(btnDeviceIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnDeviceIcon, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //文本
|
| | | this.btnDeviceName = new NormalViewControl(170, 60, true);
|
| | |
| | | btnDeviceName.TextSize = 11;
|
| | | btnDeviceName.Text = text;
|
| | | btnDeviceName.TextAlignment = TextAlignment.Center;
|
| | | this.AddChidren(btnDeviceName, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnDeviceName, ChidrenBindMode.BindEvent);
|
| | | }
|
| | |
|
| | | #endregion
|