[Solution found!] 我只是将处理程序关联到View构造函数中: MyWindow() { // Set up ViewModel, assign to DataContext etc. Closing += viewModel.
確定! 回上一頁