Click or drag to resize

WidgetHandlerTWidget Class

Base platform handler for widgets
Inheritance Hierarchy
SystemObject
  EtoWidgetHandlerTWidget
    EtoWidgetHandlerTControl, TWidget

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public abstract class WidgetHandler<TWidget> : WidgetIHandler, 
	IDisposable
where TWidget : Widget

Type Parameters

TWidget
Type of widget the handler is for

The WidgetHandlerTWidget type exposes the following members.

Constructors
  NameDescription
Protected methodWidgetHandlerTWidget
Initializes a new instance of the WidgetHandlerTWidget class
Top
Properties
  NameDescription
Protected propertyCallback
Gets the callback object for the control
Public propertyID
Gets or sets the ID of this widget
Public propertyNativeHandle
Gets the native platform-specific handle for integration purposes
Public propertyWidget
Gets the widget that this platform handler is attached to
Top
Methods
  NameDescription
Public methodAttachEvent
Attaches the specified event to the platform-specific control
Public methodDispose
Disposes this object
Protected methodDispose(Boolean)
Disposes the object
Public methodHandleEvent
Called to handle a specific event
Protected methodInitialize
Called to initialize this widget after it has been constructed
Public methodIsEventHandled
Gets a value indicating that the specified event is handled
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. If you are creating an InstanceWidget, you should use WidgetHandlerTControl, TWidget.
Examples
This example shows how to implement a platform handler for a widget called StaticWidget
// override the class and implement widget-specific interface
public MyStaticWidgetHandler : WidgetHandler<StaticWidget>, IStaticWidget
{
    // implement IStaticWidget's properties and methods
}
See Also