Exemplo n.º 1
0
        public override void CreateEditControls(IDotvvmRequestContext context, DotvvmControl container)
        {
            var checkBox = new CheckBox {
                Enabled = true
            };

            checkBox.SetBinding(CheckableControlBase.CheckedProperty, GetValueBinding(ValueBindingProperty));
            container.Children.Add(checkBox);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public override void CreateEditControls(IDotvvmRequestContext context, DotvvmControl container)
 {
     var checkBox = new CheckBox { Enabled = true };
     checkBox.SetBinding(CheckableControlBase.CheckedProperty, GetValueBinding(ValueBindingProperty));
     container.Children.Add(checkBox);
 }