« Vista 5308: VS 2005 can't deal with composition?WPF: Using controls as content »

WPF: Always remember rebuilding the solution

25/03/06

Permalink 03:41:45 pm
Categories: General, Programming, .NET

WPF: Always remember rebuilding the solution

This is one funny thing I found while fiddling around with WPF, Cider and the other parts from the newest CTP release: every now and then it’s required to rebuild the complete solution. I suppose it’s not meant to be that  way, but I’ve had all kinds of interesting effects. One time there was a weird exception coming up at runtime, telling me that a Button can’t be cast to a ListBox. The other time it was just some initialization code for a control that was apparently being executed, but didn’t have any effect. Rebuilding the complete solution helped in both cases and my guess is that the problem came up when I made some changes to the XAML code of a window.

So if your WPF app seems to behave oddly, always remember rebuilding the solution – it might help.

3 comments

Oliver-
If you can come up with a reliable repro, please let us know on the forums!
This sounds very bad.

Thanks, Rob Relyea
Program Manager, WPF Team
<a href="http://rrelyea.spaces.live.com">http://rrelyea.spaces.live.com</a>
09/23/06 @ 11:50
Never mind...I don't know why your old post came up in Feedster, etc... so recently. I didn't notice the old date on the post until now.
Of course, if you still see this problem...let us know!
09/27/06 @ 16:26
Hey Rob, thanks for getting back to me. I haven't had time yet to really test this with RC1, but when I do and I find anything, I'll be sure to let you know.
09/27/06 @ 16:31

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
Please complete the song title below. Hint: enter 'h', 'e', 'a', 'v', 'e', 'n'
antispam test

Enter your email address:

Search

Oliver
MVP logo
March 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31