This commit is contained in:
NaBian 2021-06-08 21:01:54 +08:00
commit 6a3711e6e0

View File

@ -102,7 +102,7 @@ namespace HandyControl.Controls
? (PropertyEditorBase) new EnumPropertyEditor()
: new ReadOnlyTextPropertyEditor();
public virtual PropertyEditorBase CreateEditor(Type type) => new ReadOnlyTextPropertyEditor();
public virtual PropertyEditorBase CreateEditor(Type type) => Activator.CreateInstance(type) as PropertyEditorBase ?? new ReadOnlyTextPropertyEditor();
private enum EditorTypeCode
{