0

是否有任何将 Windsor 用于 WPF 应用程序的示例代码?I am interested to see how the Mainwindow is created when the selected approach is ViewModel first? 我无法让它工作,因为首先创建 VM,我无权访问 View,所以我无法将它添加到主窗口(视图是由 Windsor 创建的,因此我无权访问它,我只有访问不是窗口或控件的 IView?

4

2 回答 2

0

我使用了标记界面、自定义激活器和自定义工具的组合来连接我在 Windsor 中的 WPF 视图、视图模型和依赖项。我在Visual Studio Magazine 的专栏中写过它。它可能会帮助你。

于 2012-05-09T14:58:26.000 回答