I have inherited source code from a project. I believe it uses either Silverlight or WPF or both.
I am trying to decypher how it all fits together. It uses XAML, of course. The problem is that when I open the XAML files Visual Studio 2008 does not display it graphically, and when it shows the file in text form, many of the elements seem to be undefined -- I mean, it is displayed with that red squigglie line unter the title of some of the XML tages -- like "UserDefined" and "Grid".
I thought that if I install Expression Blend, it will have these elements defined. But this did not work. Any ideas?
My first idea was that this was a Visual Studio 2008 issue and that it would work in the current Visual Studio 2010. But their are tabs that appear when I first open the XAML file for displaying the file graphically or as text. It defaults as text. But when I click to show it graphically, it shows an error window.
I am viewing this in Visual Studio 2008 and I am loading a solutions file when I view this.
But here is where it gets wierd. If I open the XAML file sepeately on another computer in Visual Studio 2010, it displays properly in Design mode. So what do I have on one computer that I am missing on the other one?
Why Can't I see XAML in Design?
Page 1 of 11 Replies - 620 Views - Last Post: 07 April 2011 - 04:30 AM
Topic Sponsor:
Replies To: Why Can't I see XAML in Design?
#2
Re: Why Can't I see XAML in Design?
Posted 07 April 2011 - 04:30 AM
If there is an error in the XAML, then the designer will not show. You have to fix the error before the designer will show.
First, we need to know the EXACT element in XAML that is giving you the error. Either post a screenshot or post the XAML.
Second, post either a screenshot or the XAML of the namespaces at the top of the XAML design page.
For example, this is a screenshot from one of my personal projects.

The things that are circled are namespace declarations.
Third, you need to determine if it's a Silverlight application or a WPF application. The easiest way to determine is to go to the properties of the project. A Silverlight project will have options that are specific to Silverlight, like this...
First, we need to know the EXACT element in XAML that is giving you the error. Either post a screenshot or post the XAML.
Second, post either a screenshot or the XAML of the namespaces at the top of the XAML design page.
For example, this is a screenshot from one of my personal projects.

The things that are circled are namespace declarations.
Third, you need to determine if it's a Silverlight application or a WPF application. The easiest way to determine is to go to the properties of the project. A Silverlight project will have options that are specific to Silverlight, like this...
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|