protected void CreateControls(QuestionStatement statement, WidgetStyle style) { var label = new Label { Content = statement.Label }; this.Input = new TextBox(); this.Input.KeyUp += this.UpdateValue; style.Apply(label); style.Apply(this.Input); this.Controls.Add(label); this.Controls.Add(this.Input); }
private void CreateControls(QuestionStatement statement, WidgetStyle style) { var label = new Label { Content = statement.Label }; this.Input = new CheckBox(); this.Input.Checked += this.UpdateValue; this.Input.Unchecked += this.UpdateValue; style.Apply(label); style.Apply(this.Input); this.Controls.Add(label); this.Controls.Add(this.Input); }
private void CreateControls(QuestionStatement statement, WidgetStyle style) { var label = new Label { Content = statement.Label }; this.Input = new DatePicker { SelectedDateFormat = DatePickerFormat.Short }; this.Input.SelectedDateChanged += this.UpdateValue; style.Apply(label); style.Apply(this.Input); this.Controls.Add(label); this.Controls.Add(this.Input); }