【发布时间】:2014-03-24 09:04:30
【问题描述】:
我想在 WPF 中创建一个地图编辑器应用程序,并且我使用 XNA 作为游戏引擎。
我按照几个教程将我的 XNA 游戏嵌入到 WPF 应用程序中,但是我无法使用其中的任何一个。
我在这里找到了一个非常简单的教程:(它是法语,但所有代码都在这里) http://remember.waralan.fr/?p=497
但是当我编译时,这是我的错误:
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: Additional information: 'The invocation of the constructor on type 'WpfApplication1.MainWindow' that matches the specified binding constraints threw an exception.'
我该如何解决这个问题?
【问题讨论】: