From 6e8888df488da30fb53c4a621d5c4dc6e855b5bf Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sun, 9 Nov 2025 12:00:21 +0300 Subject: [PATCH] Add CreatePhysicalWindow(). --- Dashboard.Common/Pal/AppContext.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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