This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Can someone post a quick example of how to use the ColorPicker in the WPF Property Grid?
Thanks |
|
|
Open up the samples, and add the following property to the Person class: private System.Windows.Media.Color _favouriteColour; Fire up the QuickStart and you should see the ColorPicker against the new property. Note that the property must be of type System.Windows.Media.Color. The ColorPicker doesn't handle the older System.Drawing.Color structure. |
|
|
That worked - but now, when I select a color from the selection box, the hex value does change, but the Color swatch next to the color does not change, and the selection box does not close. Am I doing something incorrectly? |
|