| | |
| | | namespace HDL_ON.Stan
|
| | | {
|
| | | /// <summary>
|
| | | /// 做成一个RowLayout型的FrameLayout
|
| | | /// 做成一个RowLayout型的FrameLayout(底层的高度为44)
|
| | | /// </summary>
|
| | | public class FrameRowControl : FrameLayoutStatuControl
|
| | | {
|
| | |
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 做成一个RowLayout型的FrameLayout
|
| | | /// 做成一个RowLayout型的FrameLayout(底层的高度为44)
|
| | | /// </summary>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | |
| | | //已经添加了底线
|
| | | return btnBottomLine;
|
| | | }
|
| | | int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset - RightOffset;
|
| | | int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset + RightOffset;
|
| | | int XX = HdlControlResourse.XXLeft + LeftOffset;
|
| | | if (leftIconSize > 0)
|
| | | {
|
| | |
| | | return btnBottomLine;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 手动移除底线(有些时候需要这种特殊效果)
|
| | | /// </summary>
|
| | | public void RemoveBottomLine()
|
| | | {
|
| | | for (int i = 0; i < this.ChildrenCount; i++)
|
| | | {
|
| | | var myView = this.GetChildren(i);
|
| | | //这里是底线的高度和Y轴
|
| | | if (myView == null || myView.Height != HdlControlResourse.BottomLineHeight
|
| | | || myView.Y != this.Height - HdlControlResourse.BottomLineHeight)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | //移除底线
|
| | | myView.RemoveFromParent();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 添加左边Caption____________________
|