Use LayoutStyle.Computed. Add Text setter

This commit is contained in:
Ross Ferguson
2020-05-15 06:04:38 +01:00
parent e04cbf2b97
commit 1dc0cc6fac
2 changed files with 91 additions and 29 deletions

View File

@@ -422,7 +422,7 @@ static class Demo {
var d = new Dialog ("Select source file", 40, 12) { list };
Application.Run (d);
MessageBox.Query (60, 10, "Selected file", list.Text == null ? "Nothing selected" : list.Text, "Ok");
MessageBox.Query (60, 10, "Selected file", list.Text.ToString() == "" ? "Nothing selected" : list.Text.ToString(), "Ok");
}
#endregion