diff --git a/Dashboard.Common/Pal/AppContext.cs b/Dashboard.Common/Pal/AppContext.cs index fe4f1f7..7adba14 100644 --- a/Dashboard.Common/Pal/AppContext.cs +++ b/Dashboard.Common/Pal/AppContext.cs @@ -71,6 +71,17 @@ namespace Dashboard.Pal /// /// A physical window. public abstract IPhysicalWindow CreatePhysicalWindow(); + + /// + /// Create a physical window with a window manager. + /// + /// A physical window with the given window manager. + public IPhysicalWindow CreatePhysicalWindow(IWindowManager wm) + { + IPhysicalWindow window = CreatePhysicalWindow(); + window.WindowManager = wm; + return window; + } #endregion public bool IsExtensionAvailable() where T : IAppContextExtension