| « Vista 5308: VS 2005 can't deal with composition? | WPF: Using controls as content » |
WPF: Always remember rebuilding the solution
25/03/06
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
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>
Of course, if you still see this problem...let us know!


