Ability to use custom types as template extended properties
I created a class to use as a property type in my template. When used as template property:
<#@ property name="TestProp" type="MyPropType"#>
everything is fine. But if I use it as extended property:
<#@ extended name="TestProp" type="MyPropType" owner="Class" #>
it doesn't work. I can see the property in property inspector, but it's not functional.
Example property type:
[TypeConverter(typeof(ExpandableObjectConverter)), DataContract]
public class MyPropType: NotifiedPropertyObjectBase
{
......
[Browsable(true), DefaultValue(true), RefreshProperties(RefreshProperties.Repaint), DisplayName("Write"), Description("Read.")]
public bool Write { get; set; }
....
3
votes
![](https://secure.gravatar.com/avatar/7a0fd3bbf91f770369d093ec286e781e?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)