ComboBox. Adopt ListView interface pattern

This commit is contained in:
Ross Ferguson
2020-06-06 19:36:51 +01:00
parent 89e2790a1c
commit 4a3e1d0959
4 changed files with 107 additions and 67 deletions

View File

@@ -434,7 +434,7 @@ static class Demo {
}
}
var list = new ComboBox () { X = 0, Y = 0, Width = 36, Height = 7 };
list.SetSource(items);
list.SetSource(items.ToList());
list.Changed += (object sender, ustring text) => { Application.RequestStop (); };
var d = new Dialog ("Select source file", 40, 12) { list };