1.5.4
New Features
ListView
The new widget ListView aims to replace ListBox. ListView allows arbitrary content.
Example creation code:
var label1 = new Label();
label1.Text = "Item1";
var label2 = new Label();
label2.Text = "Item2";
var horizontalSeparator1 = new HorizontalSeparator();
var label3 = new Label();
label3.Text = "Item4";
var label4 = new Label();
label4.Text = "Item5";
var verticalStackPanel1 = new VerticalStackPanel();
verticalStackPanel1.Widgets.Add(label3);
verticalStackPanel1.Widgets.Add(label4);
var listView1 = new ListView();
listView1.Widgets.Add(label1);
listView1.Widgets.Add(label2);
listView1.Widgets.Add(horizontalSeparator1);
listView1.Widgets.Add(verticalStackPanel1);
It is equivalent to the following MML:
<ListView>
<Label Text="Item1" />
<Label Text="Item2" />
<HorizontalSeparator />
<VerticalStackPanel>
<Label Text="Item4" />
<Label Text="Item5" />
</VerticalStackPanel>
</ListView>
It'll render following:
myra12.mp4
ComboView
The new widget ComboView aims to replace ComboBox. It also allows arbitraty content.
It's usage is similar to the ListView.
myra11.mp4
Fixed Issues:
#439: Feature Request: ListView widget(aka ListBox with arbitrary content)
#440: Feature Request: ComboView Widget that allows arbitrary widgets