xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.

§ cancel_event_handler

template<typename type_t >
using xtd::forms::cancel_event_handler = typedef delegate<void(type_t sender, cancel_event_args& e)>

Represents the method that handles a cancelable event.

senderThe source of the event.
eA cancel_event_args that contains the event data.
When you create a cancel_event_handler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event-handler method is called whenever the event occurs, unless you remove the delegate.