[EditorBrowsable(EditorBrowsableState.Never)]
protected override ViewStyle GetViewStyle()
{
- return null;
+ return new DropDownItemStyle();
}
private void CreateIcon()
};
}
+ protected override DropDownItemStyle GetDropDownItemStyle()
+ {
+ return new DropDownItemStyle
+ {
+ Size = new Size(360, 50),
+ BackgroundColor = new Selector<Color>
+ {
+ Pressed = new Color(0.05f, 0.63f, 0.9f, 1),
+ Selected = new Color(0.8f, 0.8f, 0.8f, 1),
+ Normal = new Color(1, 1, 1, 1),
+ },
+ Text = new TextLabelStyle
+ {
+ PointSize = StyleManager.PointSizeNormal,
+ Position = new Position(28, 0),
+ Text = "List item",
+ },
+ };
+ }
+
protected override PopupStyle GetPopupStyle()
{
return new PopupStyle
styleMap.Add(typeof(Button), GetButtonStyle);
styleMap.Add(typeof(CheckBox), GetCheckBoxStyle);
styleMap.Add(typeof(DropDown), GetDropDownStyle);
+ styleMap.Add(typeof(DropDown.DropDownDataItem), GetDropDownItemStyle);
styleMap.Add(typeof(Popup), GetPopupStyle);
styleMap.Add(typeof(Progress), GetProgressStyle);
styleMap.Add(typeof(RadioButton), GetRadioButtonStyle);
protected abstract DropDownStyle GetDropDownStyle();
+ protected abstract DropDownItemStyle GetDropDownItemStyle();
+
protected abstract PopupStyle GetPopupStyle();
protected abstract ProgressStyle GetProgressStyle();