Click or drag to resize

WidgetHandlerTControl, TWidgetGetControl Method

Gets the platform-specific control object of the specified widget using this handler

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static TControl GetControl(
	TWidget widget
)

Parameters

widget
Type: TWidget
The widget to get the platform-specific control from

Return Value

Type: TControl
The platform-specific control used for the specified widget
Remarks
The widget must be using a handler that returns the same control. This can be used very easily by platform code:
MyControl mycontrol;
var platformControl = MyControlHandler.GetControl(mycontrol);
Note that even if the specified handler is used, the control might not actually be using that handler. This method will still work as long as the handler implements using the same base platform-specific control.
See Also