| | |
| | | /// <summary> |
| | | /// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布) |
| | | /// </summary> |
| | | public class RowLayoutControl : RowLayout |
| | | public class RowLayoutControl : RowLayoutBase |
| | | {
|
| | | #region ■ 变量声明___________________________ |
| | | |
| | |
| | | /// <summary> |
| | | /// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布) |
| | | /// </summary> |
| | | /// <param name="ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param> |
| | | /// <param name="ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param> |
| | | public RowLayoutControl(int i_ChidrenYaxis = 0) |
| | | { |
| | | this.LineColor = UserCenterColor.Current.Transparent;
|
| | | this.SubViewWidth = Application.GetRealWidth(184);
|
| | |
|
| | | this.chidrenYaxis = i_ChidrenYaxis; |
| | | this.Height = ControlCommonResourse.ListViewRowHeight;
|
| | |
| | | /// <summary>
|
| | | /// 添加编辑控件
|
| | | /// </summary>
|
| | | /// <param name="hideMenuByClick">点击时,是否隐藏左滑菜单</param>
|
| | | /// <returns></returns> |
| | | public NormalViewControl AddEditorControl()
|
| | | public NormalViewControl AddEditorControl(bool hideMenuByClick = true)
|
| | | {
|
| | | var btnEditor = new NormalViewControl(Application.GetRealWidth(184), this.Height, false);
|
| | | btnEditor.BackgroundColor = 0xff4a4a4a;
|
| | |
| | | btnEditor.TextAlignment = TextAlignment.Center;
|
| | | btnEditor.TextID = R.MyInternationalizationString.uEditor;
|
| | | this.AddRightView(btnEditor);
|
| | | if (hideMenuByClick == true)
|
| | | {
|
| | | btnEditor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //关闭左滑菜单
|
| | | this.HideMenu();
|
| | | };
|
| | | }
|
| | |
|
| | | return btnEditor;
|
| | | } |
| | | |
| | | #endregion |
| | | }
|
| | |
|
| | | #endregion
|
| | | } |
| | | } |