| | |
| | | /// <summary>
|
| | | /// 所属区域的控件
|
| | | /// </summary>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public BelongAreaControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | //初始化数据
|
| | |
| | | btnCaption.X = ControlCommonResourse.XXLeft;
|
| | | btnCaption.Gravity = Gravity.CenterVertical;
|
| | | btnCaption.Text = i_caption + ":";
|
| | | this.AddChidren(btnCaption, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnCaption, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //显示框
|
| | | var txtView = new NormalViewControl(700, true);
|
| | |
| | | txtView.Gravity = Gravity.CenterVertical;
|
| | | txtView.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | txtView.Text = i_RoomName;
|
| | | this.AddChidren(txtView, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(txtView, ChidrenBindMode.BindEvent);
|
| | |
|
| | | if (chidrenYaxis != 0)
|
| | | {
|