开发者

communication between mvvm usercontrols in wpf

i'm new with wpf and i'm trying to develop using mvvm pattern so i have files like this

- view/students_list.xaml        (usercontrol)
- view/students_details.xaml     (usercontrol)
- viewm开发者_如何学Codel/students_list_vm.cs  (class)
- viewmodel/students_details.cs  (class)
- window.xaml                    (Main window container)

I wonder know how to comunicate each usercontrols please, could you help me?... thanks


Take a look at the event aggregator pattern. Prism provides a service that you can use to do this, as do other MVVM frameworks like MVVMLite. That said, it's generally the view models communicating with each other - not the views themselves. I assume that's what you meant.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜