p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 (http://p2p.wrox.com/forumdisplay.php?f=556)
-   -   Xaml Error Code in documentviewer section (page 79-80) (http://p2p.wrox.com/showthread.php?t=88911)

minttux December 1st, 2012 09:22 AM

Xaml Error Code in documentviewer section (page 79-80)
hi i got error xaml code in this section when i open the project of this section (means UseDocumentViewer project) in chapter 5 (page 79-80)

see this picture:

the project file is here:

My system info:
Window 8 64bit
Blend 4
.Net 3.5 and 4

Rod Stephens December 1st, 2012 10:34 AM

There's something wrong with some of Microsoft's document controls and some versions of the XAML editor so they give this sort of error. I asked them about it and they didn't seem too concerned by it all. I don't think the believe many people will be using these document objects and controls. (I also think some of the other document controls work better, although I can't remember which were the ones that worked and which gave problems right now.)

You may get a better result by using Blend.

Can you execute the program? I think I recall that sometimes the program wouldn't load in the XAML editor but would run just fine.

In cases like those, you have a couple choices:
  • Get the interface all set up without the control, add it at the end, and then not edit the interface in the designer after that.
  • Edit the interface in XAML and not use the editor.
  • Get the interface all set up without the control and create the control at run time.

Sorry this isn't a great answer. I don't think Microsoft is going to help much with this issue so it's more a question of working around the problem rather than fixing it.

minttux December 1st, 2012 12:45 PM

Thanks dude

yes it compiled and works fine.
so that is the software problem

ok . no matter

All times are GMT -4. The time now is 10:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.