IApplicationControl
Description
- Derived from
- Extended by
-
ApplicationControlBase abstract
Base interface for classes that host an IApplication object inside a 3rd-party windowing system, such as WinForms, WPF, MFC, or Qt.
The following built-in helper classes exist:
-
Tinman.AddOns.WinForms.ApplicationControl
(C#) -
Tinman.AddOns.WPF.ApplicationControlWpf
(C#) -
Tinman::AddOns::MFC::ApplicationControlMfc
(C++) -
Tinman::AddOns::Qt::ApplicationControlQt
(C++)
The above classes do not implement the IApplicationControl interface directly. Instead, they provide a getter named ApplicationHost
, which returns the IApplicationControl object to use. Also, they provide an event named ApplicationError
, which is fired when the embedded IApplication throws an exception.
Public / Methods
Public / Attributes
ContextFactory
The graphics context factory to use.
Setting the context factory to null
will reset the application control (see ResetApplication).
Changing the context factory while an application is running will change the graphics context of the application (see IApplication.GraphicsContextDetach and IApplication.GraphicsContextAttach).
An implementing class may choose to accept only certain implementations of IGraphicsContextFactory. When it rejects an implementation, it must act as if null
had been passed. See CheckContextFactory.
Extensions
CheckContextFactories
Enumerates the given factories in and returns the first IGraphicsContextFactory for which IApplicationControl.CheckContextFactory returns true
.