public TextFieldWidget( IValue value, QuestionStatement statement, GuiEnvironment guiEnvironment, WidgetStyle style) : base(value, statement, guiEnvironment) { this.CreateControls(statement, style); }
public DatePickerWidget( DateValue value, QuestionStatement statement, GuiEnvironment guiEnvironment, WidgetStyle style) : base(value, statement, guiEnvironment) { this.CreateControls(statement, style); }
public CheckBoxWidget( BooleanValue value, QuestionStatement statement, GuiEnvironment guiEnvironment, WidgetStyle style) : base(value, statement, guiEnvironment) { this.CreateControls(statement, style); }
private void CreateControls(QuestionStatement statement, WidgetStyle style) { this.Input = new CheckBox(); this.Input.Checked += (e, a) => this.UpdateValue(); this.Input.Unchecked += (e, a) => this.UpdateValue(); this.Input.IsEnabled = !this.IsReadOnly(); this.Input.IsChecked = ((BooleanValue)this.Value).Value; this.CreateControls(this.Input, statement, style); }
public ValidatedTextFieldWidget( IValue value, IValidator <string> validator, QuestionStatement statement, GuiEnvironment guiEnvironment, WidgetStyle style) : base(value, statement, guiEnvironment, style) { this.validator = validator; }
private void CreateControls(QuestionStatement statement, WidgetStyle style) { this.Input = new DatePicker { SelectedDateFormat = DatePickerFormat.Short }; this.Input.SelectedDateChanged += (e, a) => this.UpdateValue(); this.Input.IsEnabled = !this.IsReadOnly(); this.Input.SelectedDate = ((DateValue)this.Value).Value; this.CreateControls(this.Input, statement, style); }
protected void CreateControls(QuestionStatement statement, WidgetStyle style) { var label = new Label { Content = statement.Label }; this.Input = new TextBox(); this.Input.KeyUp += (e, a) => this.UpdateValue(); this.Input.IsEnabled = !this.IsReadOnly(); this.Input.Text = this.Value.ToString(); this.CreateControls(this.Input, statement, style); }
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); }