Window.Closed 事件

定义

在窗口即将关闭时发生。

public:
 event EventHandler ^ Closed;
public event EventHandler Closed;
member this.Closed : EventHandler 
Public Custom Event Closed As EventHandler 

事件类型

EventHandler

例外

当窗口正在关闭时,将设置 Visibility,或者调用 Show()ShowDialog()Hide()

注解

引发此事件后,无法阻止关闭窗口。

适用于

另请参阅