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

Created Unassigned: Property editor (ITypeEditor) not used with read only property [21421]

$
0
0
The EditorAttribute is ignored if a property is marked read only. This might be appropriate for some field but is definitely not workable for collections. Collections are often readonly from a property perspective (they do not have a setter) but their content is definitely not read only.

I would suggest that if an editor attribute has been applied to a field it should be left up to the editor to choose how to deal with read only content. It is given the property item/descriptor/etc so it can easily choose to use a TextBlockEditor if needed.

If compatibility is a concern then an alternative would be to design a new interface to allow the editor class type control over readonly field separately from the current one. The code would try to get the new interface -- if not available it would use the current behavior.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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