From 9fefbf168720e2399554fcf6c344d10a901eb470 Mon Sep 17 00:00:00 2001 From: Antony Male Date: Thu, 23 Apr 2020 17:37:46 +0100 Subject: [PATCH] Expose extra methods on IWindowManager Fixes #113 --- Stylet/WindowManager.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Stylet/WindowManager.cs b/Stylet/WindowManager.cs index 805a942..f98222a 100644 --- a/Stylet/WindowManager.cs +++ b/Stylet/WindowManager.cs @@ -18,6 +18,13 @@ namespace Stylet /// ViewModel to show the View for void ShowWindow(object viewModel); + /// + /// Given a ViewModel, show its corresponding View as a window, and set its owner + /// + /// ViewModel to show the View for + /// The ViewModel for the View which should own this window + void ShowWindow(object viewModel, IViewAware ownerViewModel); + /// /// Given a ViewModel, show its corresponding View as a Dialog /// @@ -25,6 +32,14 @@ namespace Stylet /// DialogResult of the View bool? ShowDialog(object viewModel); + /// + /// Given a ViewModel, show its corresponding View as a Dialog, and set its owner + /// + /// ViewModel to show the View for + /// The ViewModel for the View which should own this dialog + /// DialogResult of the View + bool? ShowDialog(object viewModel, IViewAware ownerViewModel); + /// /// Display a MessageBox ///