Binding the Loaded event?

后端 未结 5 1149
面向向阳花
面向向阳花 2020-12-24 08:16

I am trying to display a login window once my MainWindow loads while sticking to the MVVM pattern. So I am trying to Bind my main windows Loaded event to an event in my view

5条回答
  •  粉色の甜心
    2020-12-24 08:41

    A more generic way using behaviors is proposed at AttachedCommandBehavior V2 aka ACB and it even supports multiple event-to-command bindings,

    Here is a very basic example of use:

    
    

提交回复
热议问题