【发布时间】:2014-02-27 14:15:08
【问题描述】:
我找到了WPF.MDI 的来源,我尝试在我的项目中使用它,而没有任何特定的 dll。所以,我在项目中添加了源代码
然后,编写xmlns声明xmlns:mdi="clr-namespace:WPF.MDI"并使用MdiChild创建一个容器
<mdi:MdiContainer Theme="Aero">
<mdi:MdiChild />
</mdi:MdiContainer>
但是,我收到了一个错误XamlParseException。
我想,我做错了。但是,有什么解决办法吗?
更新: 当我将 WPF.MDI.dll 放入带有 .exe 文件的文件夹并启动它时 - 没有错误。为什么要找dll?
【问题讨论】:
-
您是否也收到了一些关于出了什么问题的详细错误消息?
-
Call the constructor for type"WPF.MDI.MdiContainer", satisfying the specified binding constraints, led to an exception." Row number "7" and the position in the "10."字符串是<mdi:MdiContainer Theme="Aero">