Try our conversational search powered by Generative AI!

Specify Default Editor Descriptor for custom Property Class

Vote:
 

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?

#178264
May 05, 2017 17:37
Vote:
 

Something like this might work:

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

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.

#178269
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.