Click or drag to resize

WidgetHandlerTControl, TWidget Class

Base platform handler for Widget objects that have a backing platform object
Inheritance Hierarchy
SystemObject
  EtoWidgetHandlerTWidget
    EtoWidgetHandlerTControl, TWidget
      EtoWidgetHandlerTControl, TWidget, TCallback

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract class WidgetHandler<TControl, TWidget> : WidgetHandler<TWidget>, 
	IControlObjectSource
where TWidget : Widget

Type Parameters

TControl
Type of the platform-specific object
TWidget
Type of widget the handler is for

The WidgetHandlerTControl, TWidget type exposes the following members.

Constructors
  NameDescription
Protected methodWidgetHandlerTControl, TWidget
Initializes a new instance of the WidgetHandlerTControl, TWidget class
Top
Properties
  NameDescription
Protected propertyConnector
Gets a weak connector class to hook up events to the underlying control
Public propertyControl
Gets or sets the platform-specific control object
Protected propertyDisposeControl
Gets a value indicating that control should automatically be disposed when this widget is disposed
Public propertyHasControl
Gets a value indicating whether this instance has a Control instance.
Top
Methods
  NameDescription
Protected methodCreateConnector
Creates the event connector for this control
Protected methodCreateControl
Creates the control if not already set.
Protected methodDispose
Disposes this widget and the associated control if DisposeControl is true
(Overrides WidgetHandlerTWidgetDispose(Boolean).)
Public methodStatic memberGetControl
Gets the platform-specific control object of the specified widget using this handler
Top
Remarks
This is the base class for platform handlers. It is used to help wire up events and provide base functionality of a widget.
Examples
This example shows how to implement a platform handler for a widget
// override the class and implement widget-specific interface
public MyWidgetHandler : WidgetHandler<MyPlatformControl, MyWidget>, IMyWidget
{
    // implement IStaticWidget's properties and methods
}
See Also

Reference

EtoWidgetHandlerTControl, TWidget