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

§ control_event_handler

template<typename type_t >
using xtd::forms::control_event_handler = typedef delegate<void(type_t sender, const control_event_args& e)>

Represents the method that will handle the control_added and control_removed events of the control class.

Parameters
senderThe source of the event.
eA control_event_args that contains the event data.
Remarks
When you create a control_event_args 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 is called whenever the event occurs, unless you remove the delegate.