xtd 0.2.0
Loading...
Searching...
No Matches

◆ control_event_handler

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

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

Parameters
senderThe source of the event.
eA control_event_args that contains the event data.
Header
#include <xtd/forms/control_event_handler>
Namespace
xtd::forms
Library
xtd.forms
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.