When I open the WPF 2008 xamShowcase project in VS2008 I am unable to load the xaml in the Designer. For instance,
DirectReportsControl.xaml error "Error 2 Value 'True' cannot be assigned to property 'IsDefault'. The property 'IsDefault' is read-only and cannot be changed. "
xamTrader.xaml errors"Error 1 Value cannot be null.Parameter name: name Line '1' Position '958'. ""Error 2 Value 'Resources\xamTrader\EasyGoing.xaml' cannot be assigned to property 'Source'. The resource dictionary XAML file has errors and cannot be loaded. "EasyGoing.xaml error"Error 1 Value cannot be null.Parameter name: name Line '1' Position '958'. "
Any ideas? Thanks.
I had similar problem and it appears, at least in my case, to be a bufg in my control, not in Visual Studio.
For instance when controls run in the designer, method such as Assembly.GetEntryAssembly() returns null.That was a source of error in my case.
I would suggest some thorough investigation!
Hello,
It sounds like Visual Studio Designer is displyaing errors when it tries to render the XAML but the code will compile and run with no problem. Is this correct?
The Designer in Visual Studio has problems working with custom controls. I see this problem all the time in Visual Studio. Expression Blend appears to be more robust with its visual designer. However, I have seen Blend display errors as well. It is my understanding that these errors are defects in in the Microsoft XAML rendering. After compiling and running, Windows has no problem rendering the controls. One work-around to this problem is to refactor the XAML into smaller sections and to use the XAML editor.
If you have a MSDN account, it would be great if you reported these as bugs with Microsoft. You could also report these issues with Infragistics Developer Support to see if they have additional information related to this issue. The webpage for the Infragistics online dev support submission page is:
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
Thank you,