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