What is the best way to troubleshoot XamlParseExceptions in Blend?
I use Blend 4 RTM, with the SL4 project, and I get completely dumb when I get the "Red Screen of Death":
"Thrown exception. XamlParseException: [Line: 0 Position: 0] ..."
Is there a list of methods that help? The error message is completely opaque and useless. Usually these errors occur because of me when I use the Toolkit and try to style things like HeaderContentControl (actually derived classes), NumericUpDown, etc. Most recently, I was stuck with this last guy and cut it all out. When I try to view a UserControl that has an instance of this, I immediately get an RSOD.
I tried:
Make sure projects reference System.Windows.Controls, even if they apparently aren't needed.
Make sure that I use relative paths to the central location where the April Toolkit is installed and used.
Make sure my styles are properly configured with xmlns namespaces etc.
source
share