Click or drag to resize

WidgetHandlerTControl, TWidgetConnector Property

Gets a weak connector class to hook up events to the underlying control

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
protected WidgetHandlerTControl, TWidgetWeakConnector Connector { get; }

Property Value

Type: WidgetHandlerTControl, TWidgetWeakConnector
The connector instance
Remarks
Some frameworks (e.g. gtk, monomac, ios, android) keep track of references in a way that leak objects when there is a circular reference between the control and the handler. This is the case when registering events from the control to a method implemented in the handler. This instance can be used to connect the objects together using a weak reference to the handler, allowing controls to be garbage collected.
See Also