mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-12-02 20:07:56 +08:00
Merge pull request #857 from ChoKaPeek/master
PropertyGrid: simple handling of custom editors
This commit is contained in:
commit
1028f08f80
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user