Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Cannot Override Editor Template Definition for Type [21849]

$
0
0
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 **

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>
```


Viewing all articles
Browse latest Browse all 4964


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>