Method ListenWhenClosing
ListenWhenClosing(Window)
Creates an observable sequence that emits CancelEventArgs when the Window is closing.
Declaration
public static IObservable<CancelEventArgs> ListenWhenClosing(this Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window | The Window to observe for closing. |
Returns
| Type | Description |
|---|---|
| IObservable<CancelEventArgs> | An observable sequence of CancelEventArgs for the closing event of the Window. |