Abstract base class for IApplicationWindow implementations.
To implement an application window, the following steps are necessary:
Implement all abstract members.
Setup event handlers using the native API and call into the
Override IApplicationWindow.Resolution to support high-DPI rendering. The default implementation returns 96 DPI.
When implementing a top-level application window, the following no-op virtual members should be overridden:
Is the native window being re-created in a call to INativeWindowRecreate.RecreateNativeWindowIfNecessary?
Creates a new instance of ApplicationWindow.
Maps the given native virtual keycode to the specified KeyboardKey value.
Creates the virtual keycode mapping for the WIN32 API.
- See also
Processes a window message of the WIN32 API and calls the required handler methods.
If this method returns
true, the WIN32 window procedure should return
Re-creates the native window.
If a graphics subsystem error has occurred.
Can be set to
true in order to make the next call to IApplicationWindow.ProcessSystemMessages return
The window resolution, in DPI.
This field will be set to
96 by the constructor of this class. It will be updated by OnMessage_Win32 when receiving a