MVVM View event Viewmodel command binding

前端 未结 3 1579
终归单人心
终归单人心 2020-12-21 12:12

I\'m looking for a good (read: simple) example on how to implement event aggregators with Prism. I\'ve never used Prism and I\'m also quite new to MVVM itself.

I hav

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 12:27

    all you need for this is the EventToCommand behavior from MVVMLight or from System.Windows.Interactivity (Blend SDK). i would recommend you to take the MVVMLight version because it has some usefull specials:)

    
    
        
            
        
    
    
    

    EventAggregator from Prism i mostly used for decoupled Viewmodel to Viewmodel communication.

提交回复
热议问题