p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 (http://p2p.wrox.com/book-wpf-programmers-reference-windows-presentation-foundation-c-2010-net-4-556/)
-   -   Xaml Error Code in documentviewer section (page 79-80) (http://p2p.wrox.com/book-wpf-programmers-reference-windows-presentation-foundation-c-2010-net-4/88911-xaml-error-code-documentviewer-section-page-79-80-a.html)

minttux December 1st, 2012 08: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)
http://uploadtak.com/images/v7439_1212012_44714_PM.jpg

see this picture:
http://img4up.com/up2/32961519533076384630.jpg

the project file is here:
http://sdrv.ms/TzAhvo

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

Rod Stephens December 1st, 2012 09: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 11:45 AM

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 08:47 PM.

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