【发布时间】:2010-03-13 01:39:21
【问题描述】:
作为 WPF 和 MVVM 的新手,我正在学习 Josh Smith's article on the MVVM pattern 和随附的示例代码。
我可以看到应用程序是在app.xaml.cs 中启动的,方法是构造一个MainWindow 对象,将其连接到MainWindowViewModel 对象,然后显示主窗口。到目前为止一切顺利。
但是,我找不到任何实例化 AllCustomersView 或 CustomerView 类的代码。在这些视图的构造函数上使用“查找所有引用”一无所获。我在这里错过了什么?
【问题讨论】: