| | |
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | | #region ■ 添加上部的显示文本_________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加上部的显示文本(如果有图标,则先添加图标,再添加文本)
|
| | | /// </summary>
|
| | | /// <param name="i_caption">内容</param>
|
| | | /// <param name="i_width">宽度</param>
|
| | | /// <param name="real">是否计算真实值</param>
|
| | | /// <returns></returns> |
| | | public NormalViewControl AddTopView(string i_caption, int i_width, bool real = true)
|
| | | {
|
| | | if (real == true)
|
| | | {
|
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(60), false);
|
| | | contr.TextSize = 15;
|
| | | contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | return contr;
|
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | | #region ■ 添加下部的显示文本_________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加下部的显示文本(如果有图标,则先添加图标,再添加文本)
|
| | | /// </summary>
|
| | | /// <param name="i_caption">内容</param>
|
| | | /// <param name="i_width">宽度</param>
|
| | | /// <param name="real">是否计算真实值</param>
|
| | | /// <returns></returns> |
| | | public NormalViewControl AddBottomView(string i_caption, int i_width, bool real = true)
|
| | | {
|
| | | if (real == true)
|
| | | {
|
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(50), false);
|
| | | contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
|
| | | contr.TextSize = 12;
|
| | | contr.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | return contr;
|
| | | }
|
| | |
|
| | | #endregion |
| | | } |
| | | } |