public MainPage() { Title = "Perpetual Engine"; var username = new TextSetting("username", "Username Input Example"); username.OnValueChanged += delegate { Msg.Log(this, "username changed"); }; var fruit = new SelectionSetting("fruit", "Which Fruit?") { Options = new { id1 = "banana", id2 = "apple", id3 = "cookies" }.ToOptions() }; fruit.OnValueChanged += delegate { Msg.Log(this, "fruit changed"); }; var car = new SelectionSetting("cars", "Which Car?"); var toggle = new SwitchSetting("demo_switch", "Demo Switch"); toggle.OnValueChanged += delegate { Msg.Log(this, "toggle changed"); car.Options = new {a = "A", b = "B"}.ToOptions(); }; Content = new StackLayout { Orientation = StackOrientation.Vertical, Children = { new TableView { HasUnevenRows = true, Root = new TableRoot { new TableSection { username, fruit, car, // toggle, // BUG: yields empty, than black page (only TableView within StackLayout) }, }, }, }, }; }
public TextApplier(EditText input, TextSetting setting) { this.input = input; this.setting = setting; }