ColorPicker & Expression Blend

Jul 15, 2011 at 2:32 PM

Hi,

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: http://forums.silverlight.net/forums/p/47429/126597.aspx

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 9:53 PM

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