-
-
Notifications
You must be signed in to change notification settings - Fork 337
Custom Platform Controls
Eto.Forms comes with many standard controls, however sometimes you may want to make full use of each platform's abilities, or if you want to re-use platform specific code already written. Custom platform controls can be created for this purpose.
Custom platform controls can have implementations for each platform, and are implemented exactly the way standard Eto.Forms controls are.
All supportable Eto.Forms control handlers are registered through the Generator class. When creating a new Eto.Forms control (custom or not), the Generator looks up the control handler via it's interface type. Generators will scan the platform assembly for the handlers, however you can also add your own directly.
The drawback of creating custom platform controls is that you have to create a handler implementation of the control for each platform you wish to use it with.