public override void CreateEditControls(IDotvvmRequestContext context, DotvvmControl container) { var checkBox = new CheckBox { Enabled = true }; checkBox.SetBinding(CheckableControlBase.CheckedProperty, GetValueBinding(ValueBindingProperty)); container.Children.Add(checkBox); }
private void CreateControlsCore(DotvvmControl container, bool enabled) { var checkBox = new CheckBox { Enabled = enabled }; var valueBinding = GetValueBinding(ValueBindingProperty); checkBox.SetBinding(CheckBox.CheckedProperty, valueBinding); Validator.Place(checkBox, container.Children, valueBinding, ValidatorPlacement); container.Children.Add(checkBox); }
public override void CreateEditControls(IDotvvmRequestContext context, DotvvmControl container) { var checkBox = new CheckBox { Enabled = true }; checkBox.SetBinding(CheckableControlBase.CheckedProperty, GetValueBinding(ValueBindingProperty)); container.Children.Add(checkBox); }