| | |
| | | /// 添加左边图标
|
| | | /// </summary>
|
| | | /// <param name="i_Iconsize">图标大小</param>
|
| | | /// <param name="i_IconPath">图标地址</param>
|
| | | /// <returns></returns>
|
| | | public IconViewControl AddLeftIcon(int i_Iconsize = 81)
|
| | | public IconViewControl AddLeftIcon(int i_Iconsize = 81, string i_IconPath = null)
|
| | | {
|
| | | var btnIcon = new IconViewControl(i_Iconsize);
|
| | | btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | btnIcon.Gravity = Gravity.CenterVertical;
|
| | | if (i_IconPath != null)
|
| | | {
|
| | | btnIcon.UnSelectedImagePath = i_IconPath;
|
| | | }
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|