| | |
| | | /// </summary>
|
| | | public class TextInputBase : EditText
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 联动底线
|
| | | /// </summary>
|
| | | private NormalViewControl btnLineTemp = null;
|
| | | /// <summary>
|
| | | /// 联动底线(值输入之后,线的颜色会变)
|
| | | /// </summary>
|
| | | public NormalViewControl btnLine
|
| | | {
|
| | | set
|
| | | {
|
| | | this.btnLineTemp = value;
|
| | | //光标事件
|
| | | this.FoucsChanged -= this.TxtCode_FoucsChangedEvent;
|
| | | this.FoucsChanged += this.TxtCode_FoucsChangedEvent;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | |
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 事件_______________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 焦点变更事件
|
| | | /// </summary>
|
| | | /// <param name="sender"></param>
|
| | | /// <param name="e"></param>
|
| | | private void TxtCode_FoucsChangedEvent(object sender, FocusEventArgs e)
|
| | | {
|
| | | if (e.Focus == false)
|
| | | {
|
| | | btnLineTemp.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | }
|
| | | else
|
| | | {
|
| | | btnLineTemp.BackgroundColor = UserCenterColor.Current.TextFrameSelectColor;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 一般方法___________________________
|
| | |
|
| | | /// <summary>
|