using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter
{
///
/// 做成一个上下可以滑动的列表控件(它会调整高度,无桌布)
///
public class VerticalListControl : VerticalScrolViewLayout
{
#region ■ 变量声明___________________________
///
/// 行之间的间距
///
public int rowSpace = 0;
#endregion
#region ■ 初始化_____________________________
///
/// 做成一个上下可以滑动的列表控件(它会调整高度,无桌布)
///
/// 行之间的间距(这个值是与行控件绑定一起使用的)
public VerticalListControl(int i_rowSpace = 0)
{
rowSpace = Application.GetRealHeight(i_rowSpace);
}
#endregion
#region ■ 添加子控件_________________________
///
/// 添加子控件(FrameRowControl,RowLayoutControl会改变高度)
///
///
public override void AddChidren(View view)
{
base.AddChidren(view);
if (view is FrameRowControl || view is RowLayoutControl)
{
if (rowSpace > 0)
{
view.Height += rowSpace;
}
}
}
#endregion
}
}