using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace GenericDisplayCommand.Controls
{
[Serializable]
public abstract class View
{
public string Id
{
get; set;
}
///
/// 2dp, match_parent
///
public string Height
{
get; set;
}
///
/// 2dp, match_parent
///
public string Width
{
get; set;
}
///
/// path to picture or color number like: #dce6f1
///
public string Background
{
get; set;
}
public string PaddingLeft
{
get; set;
}
public string PaddingTop
{
get; set;
}
public string PaddingRight
{
get; set;
}
public string PaddingBottom
{
get; set;
}
public Scrollbars_Values[] Scrollbars
{
get; set;
}
//[XmlElement("AllowAction", typeof(AllowAction))]
public List AllowActions
{
get; set;
}
public string ActionValue
{ get; set; }
}
[Serializable]
public enum AllowAction
{
None,
///
/// action for this view will trigger a callback
///
Submit,
///
/// this view is selectable, and will be carried with ActionValue once other Submit view triggered.
///
Select,
///
/// this view can drag to other place.
///
Drag,
///
/// this view can be dropped by other view.
///
Drop,
}
[Serializable]
public enum Scrollbars_Values
{
///
None,
///
Horizontal,
///
Vertical,
}
}