This project has moved and is read-only. For the latest updates, please go here.

ColorPicker & Expression Blend

Jul 15, 2011 at 3:32 PM


Not really a question, but some information that others may find useful:

I've been using some of the controls in this great collection and so far so good, until I tried to create a controltemplate for the colorpicker. (I should say first of all that I'm using vs2008 and .Net3.5 and editing styles using Expression Blend2.)

The controltemplate works fine during run-time, but inside Blend an exception is thrown after creating the template.


After a lot of researching, I found the following:

It seems that Blend doesn't like embedded popups in control templates and the only way I found around this was to catch the exception (or avoid it using a test for a failed cast) in OnApplyTemplate

I think it may be worth changing this in the control as I'm sure I'm not the only one who's come across this issue.


Jul 15, 2011 at 10:53 PM

You are correct.  This is something that I need to address.