Reply
Old April 7th, 2011 Top | #1
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

Default Why Can't I see XAML in Design Mode?

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.
Complete is offline   Reply With Quote
Old April 7th, 2011 Top | #2
 
LordOfLA's Avatar
Godlike!
Joined: February 2004
Location: Salisbury, Wiltshire, UK
Posts: 7,031
Blog Entries: 5
Reputation: 4137
Power: 213

Default Re: Why Can't I see XAML in Design Mode?

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.



If HK-47 and GLaDOS had a child, the character they create would cause the video game world to overdose on awesome. -sheridanmovieguy: Dragon age forum user.
LordOfLA is offline   Reply With Quote
Old April 11th, 2011 Top | #3
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

Default Re: Why Can't I see XAML in Design Mode?

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#
Complete is offline   Reply With Quote
Old April 11th, 2011 Top | #4
 
LordOfLA's Avatar
Godlike!
Joined: February 2004
Location: Salisbury, Wiltshire, UK
Posts: 7,031
Blog Entries: 5
Reputation: 4137
Power: 213

Default Re: Why Can't I see XAML in Design Mode?

The language used should be irrelevant. If its working in VS2010 use that.



If HK-47 and GLaDOS had a child, the character they create would cause the video game world to overdose on awesome. -sheridanmovieguy: Dragon age forum user.
LordOfLA is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
XP Mode Tweakfiend Windows 7 & Applications 4 June 5th, 2010 8:03pm
XP mode!? noeyjerd Windows 7 & Applications 24 October 26th, 2009 6:36pm
Lets Design Our Own HTCP Chassis - Provide Your Design Input dhy8386 General Hardware 5 December 13th, 2007 1:14pm
DMA mode? krmanning Windows Desktop Systems 15 October 3rd, 2004 12:30pm
If you could design the next..... neoterixx Desktop Customisation 26 June 11th, 2003 7:26pm