How do i raise an event in a usercontrol and catch it in mainpage?

前端 未结 3 445
小鲜肉
小鲜肉 2020-12-02 06:58

I have a UserControl, and I need to notify the parent page that a button in the UserControl was clicked. How do I raise an event in the UserC

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 07:31

    Or if you are looking for a more decoupled solution you can use a messenger publisher / subscriber model such as MVVM Light Messenger here

提交回复
热议问题