共用方式為


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()

備註

引發此事件之後,就無法防止關閉視窗。

適用於

另請參閱