| | |
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, this.Height, false);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | contr.Y += chidrenYaxis;
|
| | |
| | | var btnIcon = new IconViewControl(i_Iconsize);
|
| | | btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | btnIcon.Gravity = Gravity.CenterVertical;
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnIcon.Y += chidrenYaxis;
|
| | |
| | | btnRight.Gravity = Gravity.CenterVertical;
|
| | | btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset;
|
| | | btnRight.UnSelectedImagePath = "Item/RightNext.png";
|
| | | this.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnRight, ChidrenBindMode.BindEvent);
|
| | |
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | |
| | | this.AddChidren(btnContr, ChidrenBindMode.NotBind);
|
| | | btnContr.InitControl();
|
| | | //复合控件需要特殊处理
|
| | | this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEventOnly);
|
| | | this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEvent);
|
| | | if (RightOffset != 0)
|
| | | {
|
| | | btnContr.X += RightOffset;
|
| | |
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var btnContr = AddMostRightView(i_text, i_width, this.Height, false);
|
| | | this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnContr, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnContr.Y += chidrenYaxis;
|
| | |
| | | contr.TextSize = 15;
|
| | | //当指定实际坐标时,这里需要的偏移量为2倍
|
| | | contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis * 2;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | |
|
| | | return contr;
|
| | | }
|
| | |
| | | contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis * 2;
|
| | | contr.TextSize = 12;
|
| | | contr.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | |
|
| | | return contr;
|
| | | }
|