Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Windows Presentation Foundation
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Windows Presentation Foundation Discussion of the beta version of Windows Presentation Foundation "WPF" formerly know as codename "Avalon" as well as the related XAML.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Presentation Foundation section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 23rd, 2007, 08:04 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in loading the serialized canvas object

Hi,



I'm getting an error while loading a serialized object of canvas.



I have a WPF window on which user can create UI objects at runtime by drag-drop operation.



I have a Canvas object created by drag-drop operation. This canvas has few child controls.

It is then serialized using XAMLWriter.Save method.



While deserializing the same canvas object, following error comes on XamlReader.Load() method.



"Cannot set Name attribute value <controlname> on element 'TextBlock'. 'TextBlock' is under the scope of element <Canvas>, which already had a name registered when it was defined in another scop"



While de-serializing the canvas, child control's "Name" property is not accepted by the XAMLParser.



 How should I serialize and deserialize canvas object such that it can be parsed without any error?



thanks
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Image on Canvas seikwon180 Pro Java 1 July 17th, 2013 02:09 AM
mysql is stripping slashes in serialized array harpua PHP Databases 1 December 5th, 2007 06:16 AM
converting .NET error object in VB error object webnet .NET Web Services 0 February 5th, 2007 05:02 AM
Object Factories with Lazy Loading in C# cyberjoe C# 2 December 13th, 2006 10:21 PM
storing serialized object in sql server ACE2084 General .NET 0 October 13th, 2005 01:35 PM



All times are GMT -4. The time now is 11:51 AM.


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