locked
Is there any way to change CustomPropertyValueEditor attribute value at design time from .StateName to .Storyboard conditionally? RRS feed

  • Question

  • Hello,

    I am coding on a behavior and am using the CustomPropertyValueEditor attribute. Using this attribute one can choose especially between .StateName or .Storyboard. The CustomPropertyValueEditor attribute cannot be applied multiple times. Therefore I can only set one single CustomPropertyValueEditor for a custom property.

    But what I need is to choose between two attribute values, e.g. between CustomPropertyValueEditor.StateName or CustomPropertyValueEditor.Storyboard, conditionally for the same custom property.

    Is there any easy way to achieve this without needing to build a custom property value editor from scratch?

    This could not be solved using the EditorBrowsable attribute addtionally, because EditorBrowsable takes a constant which cannot be changed dynamically.

    Any help would be very appreciated.

    Best regards,

    Martin

    Wednesday, February 2, 2011 11:36 AM