/ViewModel for a Task or Dialog look like?
I'm trying to move to a Model/ViewModel/View architecture and got stuck when trying to push selection dialogs to this pattern. I'd like to separate retrieving a list of choices (business/presentation logic) and the actual displaying/choosing mechanism (view) to re-use the former with different views (eg ComboBox vs. modal dialog).
How would a ViewModel for such a selection task look like? Or am I trying to hard, and I should implement this in the View only?
Do you mean that you would like to use the implementation to retrieve list?? If so, I think you can create a service class in the application layer and reuse the functionality..
链接地址: http://www.djcxy.com/p/56112.html上一篇: WPF MVVM:如何关闭一个窗口