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

New Post: Unit conversion on CollectionControl (propertygrid)

$
0
0
What is the best way of implementing a unit conversion on a property displayed in the propertygrid of a CollectionControl?

e.g. I have a Property Length that I want to display in either centimetres or inches depending on the users settings, but I want the underlying property to only maintain the centimetres value.

I have tried a TypeConverter but understand that is not supported for PropertyGrid.

I also tried overriding ToString but that doesn't really work very well at the Property level.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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