Click or drag to resize

WidgetHandlerTWidgetHandleEvent Method

Called to handle a specific event

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public void HandleEvent(
	string id,
	bool defaultEvent = false
)

Parameters

id
Type: SystemString
ID of the event to handle
defaultEvent (Optional)
Type: SystemBoolean
True if the event is default (e.g. overridden or via an event handler subscription)

Implements

WidgetIHandlerHandleEvent(String, Boolean)
Remarks
Most events are late bound by this method. Instead of wiring all events, this will be called with an event string that is defined by the control. This is called automatically when attaching to events, but must be called manually when users of the control only override the event's On... method. Override the AttachEvent(String) to attach your events
See Also