Click or drag to resize

PlatformInstance Property

Gets the platform for the current thread

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Platform Instance { get; }

Property Value

Type: Platform
Remarks
Typically you'd have only one platform active at a time, and this holds an instance to that value. The current platform is set automatically by the Application class when it is initially created. This will return a different value for each thread, so if you have multiple platforms running (e.g. GTK + Mac for OS X), then this will allow for that. This will be used when creating controls. To create controls on a different platform outside of its own thread, use the Context property.
See Also