Click or drag to resize

Widget Class

Base widget class for all objects requiring a platform-specific implementation
Inheritance Hierarchy
SystemObject
  EtoWidget
    More...

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
[RuntimeNamePropertyAttribute("ID")]
public abstract class Widget : IHandlerSource, 
	IDisposable, ICallbackSource

The Widget type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyControlObject
Gets the instance of the platform-specific object
Public propertyHandler
Gets the platform-specific handler for this widget
Public propertyID
Gets or sets the ID of this widget
Public propertyNativeHandle
Gets the native platform-specific handle for integration purposes
Public propertyPlatform
Gets the platform that was used to create the Handler for this widget
Public propertyProperties
Gets the dictionary of properties for this widget
Public propertyCode exampleStyle
Gets or sets the style of this widget
Top
Methods
  NameDescription
Public methodDispose
Disposes of this widget, supressing the finalizer
Protected methodDispose(Boolean)
Handles the disposal of this widget
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
Protected methodInitialize
Initializes the widget handler
Protected methodOnStyleChanged
Handles when the Style is changed.
Protected methodStatic memberCode exampleRegisterEventT
Registers the event for overridding
Public methodToString
Gets a string that represents the current object with its ID if specified.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventStyleChanged
Occurs when the Style property has changed
Top
Remarks
The Widget is the base of all abstracted objects that have platform-specific implementations. To implement the handler for a widget, use the WidgetHandlerTWidget as the base class.
See Also

Reference

Inheritance Hierarchy
SystemObject
  EtoWidget
    Eto.DrawingFont
    Eto.DrawingFontFamily
    Eto.DrawingFontTypeface
    Eto.DrawingGraphics
    Eto.DrawingImage
    Eto.DrawingRegion
    Eto.FormsApplication
    Eto.FormsBindableWidget
    Eto.FormsCell
    Eto.FormsClipboard
    Eto.FormsCommonDialog
    Eto.FormsCursor
    Eto.FormsDataObject
    Eto.FormsGridColumn
    Eto.FormsNotification
    Eto.FormsPageSettings
    Eto.FormsPrintDocument
    Eto.FormsPrintSettings
    Eto.FormsScreen
    Eto.FormsTrayIndicator
    Eto.FormsUITimer
    Eto.ThreadingThread