using Shared;
|
using HDL_ON.UI.CSS;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace HDL_ON.Stan
|
{
|
/// <summary>
|
/// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布)
|
/// </summary>
|
public class RowLayoutControl : RowLayoutBase
|
{
|
#region ■ 变量声明___________________________
|
|
/// <summary>
|
/// 桌布控件
|
/// </summary>
|
private FrameRowControl m_frameTable = null;
|
/// <summary>
|
/// 桌布控件
|
/// </summary>
|
public FrameRowControl frameTable
|
{
|
get
|
{
|
if (m_frameTable == null) { this.InitFrameTableControl(); }
|
return m_frameTable;
|
}
|
}
|
/// <summary>
|
/// 此控件的识别主键(自定义设置的)
|
/// </summary>
|
public string MainKeys = string.Empty;
|
/// <summary>
|
/// 子控件Y轴偏移量(共通定义而已,有些界面需要这种特殊操作)
|
/// </summary>
|
public int chidrenYaxis = 0;
|
|
#endregion
|
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 做成一个点击能够显示选中状态背景色的RowLayout(拥有桌布)
|
/// </summary>
|
/// <param name="ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
public RowLayoutControl(int i_ChidrenYaxis = 0)
|
{
|
this.LineColor = CSS_Color.viewTranslucence;
|
this.SubViewWidth = Application.GetRealWidth(64);
|
|
this.chidrenYaxis = i_ChidrenYaxis;
|
this.Height = HdlControlResourse.ListViewRowHeight;
|
this.Width = Application.CurrentWidth;
|
}
|
|
/// <summary>
|
/// 初始化桌布控件
|
/// </summary>
|
private void InitFrameTableControl()
|
{
|
this.m_frameTable = new FrameRowControl(chidrenYaxis);
|
this.m_frameTable.Height = this.Height;
|
base.AddChidren(frameTable);
|
}
|
|
#endregion
|
}
|
}
|