public override FrameworkElement CreateEditControl(PropertyDefinition propertyDefinition, string bindingPath) { var control = propertyDefinition.CreateEditControl(bindingPath); if (control != null) return control; var ctl = CreateExtendedToolkitControl(propertyDefinition, bindingPath); if (ctl != null) return ctl; return base.CreateEditControl(propertyDefinition, bindingPath); }
/// <summary> /// Creates the edit control. /// </summary> /// <param name="propertyDefinition">The property definition.</param> /// <param name="bindingPath">The binding path.</param> /// <returns>A FrameworkElement.</returns> public override FrameworkElement CreateEditControl(PropertyDefinition propertyDefinition, string bindingPath) { var control = propertyDefinition.CreateEditControl(bindingPath); if (control != null) { return(control); } var ctl = this.CreateExtendedToolkitControl(propertyDefinition, bindingPath); if (ctl != null) { return(ctl); } return(base.CreateEditControl(propertyDefinition, bindingPath)); }