Try our conversational search powered by Generative AI!

Specify Default Editor Descriptor for custom Property Class


If I have created a custom Property class derived from one of the available Property base types, is there a way to specify a default Editor Descriptor for my property type, or do I now have to put the EditorDescriptor attribute on every content type property of this type?

May 05, 2017 17:37

Something like this might work:

        EditorDescriptorBehavior = EditorDescriptorBehavior.ExtendBase,
        TargetType = typeof(YourProperyType))]
    public class YourEditorDescriptor : EditorDescriptor
        public YourEditorDescriptor()
            // Here you can set you editing class and so on
May 05, 2017 18:37

well, I wanted to use one of the built-in editor descriptors for my custom class, but looks like it works to derive my own editor descriptor from the Epi class and specify my custom type in the registration -- Thanks.

May 05, 2017 21:35
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.