在WPF项目中,IronPython WPF项目中不支持Window

时间:2018-07-10 13:21:19

标签: wpf python-3.x xaml ironpython

当我在Visual Studio 2017(社区,版本15.7.4)中创建new IronPython WPF project时,我将遇到"XDG0008 Window (and also Grid) is not supported in a Windows Presentation Foundation (WPF) project"错误。 XAML中没有IntelliSense,并且我无法添加任何其他控件。 WPF应用程序(.NET Framework)项目没有问题。

Python Environments = IronPython 2.7 (32-bit) 
References = PresentationCore , PresentationFramework, System.XAML, WindowBase. Base on python project file all these references are version 4.0.

如果删除并重新添加引用,则没有任何区别。有什么建议吗?

感谢并为我的英语感到抱歉:)

0 个答案:

没有答案