[IronPython] System.Windows.Serialization

Martin Maly Martin.Maly at microsoft.com
Thu Apr 20 16:52:20 CEST 2006


The WinFX is still undergoing changes that often result in the tutorial not working. We are actually resolving all these incompatibilities right now to make sure that the tutorial released with Beta 6 works with the February CTP of WinFX. As for possible differences between Feb CTP of WinFX and march CTP of the designer, that is a bit trickier and we'll probably have to wait for the two to work together again with subsequent releases of WinFX.

Martin

________________________________
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Vamshi Raghu
Sent: Thursday, April 20, 2006 12:11 AM
To: Discussion of IronPython
Subject: [IronPython] System.Windows.Serialization

Hello,

Just wanted to let you know that LoadXaml in avalon.py in 1.0 Beta 5 imports System.Windows.Serialization, but this has been renamed from the Feb CTP of WinFX onwards to System.Windows.Markup.

Had some trouble figuring it out! Still having trouble using LoadXaml though. It seems there is some incompatibility in the XAML expected by the deserializer.

>>> xaml1 = LoadXaml("calc.xaml")
Traceback (most recent call last):
  File , line 0, in input##14
  File G:\Program Files\IronPython-1.0-Beta5\Tutorial\avalon.py, line 69, in Loa
dXaml
  File PresentationFramework, line unknown, in Load
  File PresentationFramework, line unknown, in XmlTreeBuildDefault
  File PresentationFramework, line unknown, in Parse
  File PresentationFramework, line unknown, in ParseFragment
  File PresentationFramework, line unknown, in GetParseMode
  File PresentationFramework, line unknown, in ReadXaml
  File PresentationFramework, line unknown, in ParseError
SystemError: 'Canvas' tag not valid in namespace ' http://schemas.microsoft.com/w
infx/avalon/2005'. Tag names are case sensitive. Line '2' Position '2'.

Also, it can't read files created from Expression Interactive Designer March CTP. I get errors like:
>>> xaml1 = LoadXaml("D:\\Code\\C#\\Graph\\Scene1.xaml")
Traceback (most recent call last):
  File , line 0, in input##16
  File G:\Program Files\IronPython-1.0-Beta5\Tutorial\avalon.py, line 69, in LoadXaml
  File PresentationFramework, line unknown, in Load
  File PresentationFramework, line unknown, in XmlTreeBuildDefault
  File PresentationFramework, line unknown, in Parse
  File PresentationFramework, line unknown, in ParseFragment
  File PresentationFramework, line unknown, in GetParseMode
  File PresentationFramework, line unknown, in ReadXaml
  File PresentationFramework, line unknown, in ParseError
SystemError: 'Class' attribute in ' http://schemas.microsoft.com/winfx/2006/xaml'
 namespace not valid. Try compiling the XAML. Line '9' Position '2'.

Any hints?

Version:
IronPython 1.0.2296 (Beta) on .NET 2.0.50727.42
Windows SDK 5308.0
WinFX SDK 50215.45

Thanks!
-Vamshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060420/d70fc86a/attachment.html>


More information about the Ironpython-users mailing list