I am trying to follow the example in your documentation for defining a custom editor template based on type (not property name). When I use this example and specify
> <xctk:EditorTemplateDefinition TargetProperties="{x:Type fwdesignertree:ModelNodeReference}">
I get an error The specified value cannot be assigned. The following type was expected: "IList".
I am not sure if I am looking at old documentation or if I am doing something incorrect. Any help you can provide would be much appreciated. Thanks.
Comments: ** Comment from web user: mitchjhill **
> <xctk:EditorTemplateDefinition TargetProperties="{x:Type fwdesignertree:ModelNodeReference}">
I get an error The specified value cannot be assigned. The following type was expected: "IList".
I am not sure if I am looking at old documentation or if I am doing something incorrect. Any help you can provide would be much appreciated. Thanks.
Comments: ** Comment from web user: mitchjhill **
For anyone else who stumbles across this, you can prevent the error from appearing by changing TargetProperties from an attribute on xctkpg:EditorTemplateDefinition to a child element, e.g.
```
<xctk:EditorTemplateDefinition TargetProperties="{x:Type sys:Double}">
```
becomes
```
<xctk:EditorTemplateDefinition>
<xctk:EditorTemplateDefinition.TargetProperties>
<xctk:TargetPropertyType Type="{x:Type sys:Double}"/>
</xctk:EditorTemplateDefinition.TargetProperties>
```