2014-02-22 62 views
0

托管XNA我想创建一个WPF地图编辑器应用程序,我使用XNA的游戏引擎。在WPF应用程序

我跟着几个教程将我的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.' 

我怎么能修复?

回答

1

我检查源代码,它似乎是工作。您只需检查未包含的关联资源文件(如“white.xnb”)。只是不要使用它(代码中的注释使用行)或在内容文件夹中使用您自己的自定义资源。

在build目录应该文件的位置是: “内容/ white.xnb

+0

事实上,这是问题! 谢谢! –