pub fn on_window_close_requested(
child: impl IntoUiNode,
handler: Box<dyn FnMut(&WindowCloseRequestedArgs) -> HandlerResult + Send>,
) -> UiNodeExpand description
P On window close requested.
Calling propagation().stop() on this event cancels the window close.
§Preview
You can preview this event using on_pre_window_close_requested.
Otherwise the handler is only called after the widget content has a chance to stop propagation.
§Async
You can use async event handlers with this property.