How to close parent windows using WPF User Control

后端 未结 3 1232
失恋的感觉
失恋的感觉 2021-02-14 10:38

Assume that I have two WPF windows: window_One and window_Two.

  • window_One has one button. Clicking this button opens window_Two.
  • window_Two contains a Use
3条回答
  •  臣服心动
    2021-02-14 10:51

    You can try EventAggregator to implement this event driven logic across different ViewModel.

    http://www.codeproject.com/Articles/355473/Prism-EventAggregator-Sample

提交回复
热议问题