• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Why Can't I see XAML in Design Mode?

Complete

OSNN Addict
#1
I have inherited source code from a project.

I am trying to decypher how it all fits together. It uses XAML. The problem is that when I open the XAML files, Visual Studio 2008 does not display it in Design Mode, 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?

And, yeah, I have asked this question in one way or another other places.:p
 
#2
What was the project developed in initially? Should work in the same environment - else you've shown that VS2010 has no problems, so I'd suggest using that to be honest.
 
#3
The XAML code was designed first in Expression Blend. It seems to be the only way to view the XAML now. I think it must have something to do with the fact that the code used is C++ and not C#
 

Members online

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,013
Latest member
Pdawgintown