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; }
Protected ReadOnly Property Connector As WidgetHandlerTControl, TWidgetWeakConnector
Get
member Connector : WidgetHandlerTControl, TWidgetWeakConnector with get
Property Value
Type:
WidgetHandlerTControl, TWidgetWeakConnectorThe 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