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 a custom palette be specified for the color picker? |
|
|
Hello Yes, you can specify your own custom palette for the color picker. The WPF Elements pack comes with 2 types of color picker controls. One of them is a drop down palette of colors similar to the one seen in Microsoft office. The other color picker contains a drop down tab panel with 3 different modes for picking colors, including a color palette. Both of these controls have a settable Palette property which is a list of NamedColor objects. A named color is simply made up of a name and a color, but you don't need to set the name if you don't need to. By creating your own list of named colors and setting the Palette property, you can provide your own custom color palette. Also, you can style the color picker to arrange the colors however you want if you don't want to use the standard Microsoft palette layout. You can get details about styling a color palette by reading this blog post. It's aimed at the Silverlight color picker, but you can use the same technique for the WPF one. Let me know if you need more information. Cheers |
|