WidgetIHandlerHandleEvent Method |
Called to handle a specific event
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax void HandleEvent(
string id,
bool defaultEvent = false
)
Sub HandleEvent (
id As String,
Optional defaultEvent As Boolean = false
)
abstract HandleEvent :
id : string *
?defaultEvent : bool
(* Defaults:
let _defaultEvent = defaultArg defaultEvent false
*)
-> unit
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)
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.
See Also