StyleAddTHandler Method (String, StyleHandlerTHandler) |
Adds a style for a widget handler
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static void Add<THandler>(
string style,
StyleHandler<THandler> styleHandler
)
where THandler : class, WidgetIHandler
Public Shared Sub Add(Of THandler As {Class, WidgetIHandler}) (
style As String,
styleHandler As StyleHandler(Of THandler)
)
static member Add :
style : string *
styleHandler : StyleHandler<'THandler> -> unit when 'THandler : not struct and WidgetIHandler
Parameters
- style
- Type: SystemString
Identifier for the style - styleHandler
- Type: EtoStyleHandlerTHandler
Delegate with your logic to style the widget and/or platform control
Type Parameters
- THandler
- Type of the handler that should be styled
Remarks
Styling a widget handler allows you to access both the widget and the platform-specifics for the widget.
To use this, you would have to add a reference to one of the Eto.*.dll's so that you can utilize
the platform handler directly. Typically this would be called before your application is run.
See Also