Hello all, I'm receiving a funny error when I try to do this in a XAML file: XAML Code: <Window x:Class="ProjectName.WindowName" ''' some stuff here''' </Window>
IPython Code: import wpf from System.Windows import * class MyWindow(Window): def __init__(self): wpf.LoadComponent(self, "pySimpleStack.xaml") if __name__ == '__main__': Application().Run(MyWindow()) As soon as I remove the x:Class declaration my program run just fine. But I found useful to keep the declaration of the class, any ideas? Error: An exception of type 'System.Xaml.XamlObjectWriterException' occurred in Snippets.debug.scripting but was not handled in user code Additional information: Specified class name 'ProjectName.WindowName' doesn't match actual root instance type 'IronPython.NewTypes.System.Windows.Window_4$4'. Remove the Class directive or provide an instance via XamlObjectWriterSettings.RootObjectInstance. -- More important than the intelligence to plan is the ability to execute *Sergio A. Hernandez*
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users