old mode 100755
new mode 100644
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | {
|
| | | /// <summary>
|
| | | /// 做成一个左边有标题的模拟Rowlayout显示的FrameLayout控件
|
| | | /// </summary>
|
| | | public class FrameCaptionViewControl : FrameRowControl
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 输入框的值
|
| | | /// </summary>
|
| | | public string Text
|
| | | {
|
| | | get { return txtView.Text; }
|
| | | set { txtView.Text = value; }
|
| | | }
|
| | | /// <summary>
|
| | | /// 显示框控件(取值或者获取值可以使用【Text】属性,虽然这个也可以取)
|
| | | /// </summary>
|
| | | public NormalViewControl txtView = null;
|
| | | /// <summary>
|
| | | /// 标题控件
|
| | | /// </summary>
|
| | | public NormalViewControl btnCaption = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 做成一个模拟RowLayout,进行输入的FrameLayout控件(左边有标题)
|
| | | /// </summary>
|
| | | /// <param name="i_caption">标题文本</param>
|
| | | /// <param name="i_text">显示文本的值</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public FrameCaptionViewControl(string i_caption, string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | btnCaption = new NormalViewControl(270, 58, true);
|
| | | btnCaption.X = ControlCommonResourse.XXLeft;
|
| | | btnCaption.Gravity = Gravity.CenterVertical;
|
| | | btnCaption.Text = i_caption + ":";
|
| | |
|
| | | //显示框
|
| | | txtView = new NormalViewControl(700, true);
|
| | | txtView.X = Application.GetRealWidth(294);
|
| | | txtView.Gravity = Gravity.CenterVertical;
|
| | | txtView.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | txtView.Text = i_text;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 初始化控件
|
| | | /// </summary>
|
| | | /// <param name="caption">标题</param>
|
| | | /// <param name="text">文本框的值</param>
|
| | | public virtual void InitControl()
|
| | | {
|
| | | this.AddChidren(btnCaption, ChidrenBindMode.BindEvent);
|
| | |
|
| | | this.AddChidren(txtView, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnCaption.Y += chidrenYaxis;
|
| | | txtView.Y += chidrenYaxis;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Shared.Phone.UserCenter |
| | | { |
| | | /// <summary> |
| | | /// 做成一个左边有标题的模拟Rowlayout显示的FrameLayout控件 |
| | | /// </summary> |
| | | public class FrameCaptionViewControl : FrameRowControl |
| | | { |
| | | #region ■ 变量声明___________________________ |
| | | |
| | | /// <summary> |
| | | /// 输入框的值 |
| | | /// </summary> |
| | | public string Text |
| | | { |
| | | get { return txtView.Text; } |
| | | set { txtView.Text = value; } |
| | | } |
| | | /// <summary> |
| | | /// 显示框控件(取值或者获取值可以使用【Text】属性,虽然这个也可以取) |
| | | /// </summary> |
| | | public NormalViewControl txtView = null; |
| | | /// <summary> |
| | | /// 标题控件 |
| | | /// </summary> |
| | | public NormalViewControl btnCaption = null; |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 初始化_____________________________ |
| | | |
| | | /// <summary> |
| | | /// 做成一个模拟RowLayout,进行输入的FrameLayout控件(左边有标题) |
| | | /// </summary> |
| | | /// <param name="i_caption">标题文本</param> |
| | | /// <param name="i_text">显示文本的值</param> |
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param> |
| | | public FrameCaptionViewControl(string i_caption, string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) |
| | | { |
| | | btnCaption = new NormalViewControl(270, 58, true); |
| | | btnCaption.X = ControlCommonResourse.XXLeft; |
| | | btnCaption.Gravity = Gravity.CenterVertical; |
| | | btnCaption.Text = i_caption + ":"; |
| | | |
| | | //显示框 |
| | | txtView = new NormalViewControl(700, true); |
| | | txtView.X = Application.GetRealWidth(294); |
| | | txtView.Gravity = Gravity.CenterVertical; |
| | | txtView.TextColor = UserCenterColor.Current.TextGrayColor1; |
| | | txtView.Text = i_text; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化控件 |
| | | /// </summary> |
| | | /// <param name="caption">标题</param> |
| | | /// <param name="text">文本框的值</param> |
| | | public virtual void InitControl() |
| | | { |
| | | this.AddChidren(btnCaption, ChidrenBindMode.BindEvent); |
| | | |
| | | this.AddChidren(txtView, ChidrenBindMode.BindEvent); |
| | | if (chidrenYaxis != 0) |
| | | { |
| | | btnCaption.Y += chidrenYaxis; |
| | | txtView.Y += chidrenYaxis; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |