Click or drag to resize

PlatformLoadAssembly Method (Assembly)

Loads the extensions specified by the assembly attribute PlatformExtensionAttribute.

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void LoadAssembly(
	Assembly assembly
)

Parameters

assembly
Type: System.ReflectionAssembly
Assembly to load the extensions for.
Remarks
This is useful for 3rd party libraries and when defining your own custom controls. This method is called automatically on the same assembly of a custom control when its handler cannot be found. It will also be called for the same assembly with the prefix of the platform ID. For example, if MyControl was declared in MyControls.dll, then Eto will automatically also load MyControls.Wpf.dll for the Wpf platform, and MyControls.XamMac2.dll for the XamMac2 platform, etc. Use ExportHandlerAttribute and ExportInitializerAttribute to register handlers with the platform when the assembly is loaded or perform other logic.
See Also