Expose extra methods on IWindowManager

Fixes #113
This commit is contained in:
Antony Male 2020-04-23 17:37:46 +01:00
parent f946b8b9ac
commit 9fefbf1687
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,13 @@ namespace Stylet
/// <param name="viewModel">ViewModel to show the View for</param>
void ShowWindow(object viewModel);
/// <summary>
/// Given a ViewModel, show its corresponding View as a window, and set its owner
/// </summary>
/// <param name="viewModel">ViewModel to show the View for</param>
/// <param name="ownerViewModel">The ViewModel for the View which should own this window</param>
void ShowWindow(object viewModel, IViewAware ownerViewModel);
/// <summary>
/// Given a ViewModel, show its corresponding View as a Dialog
/// </summary>
@ -25,6 +32,14 @@ namespace Stylet
/// <returns>DialogResult of the View</returns>
bool? ShowDialog(object viewModel);
/// <summary>
/// Given a ViewModel, show its corresponding View as a Dialog, and set its owner
/// </summary>
/// <param name="viewModel">ViewModel to show the View for</param>
/// <param name="ownerViewModel">The ViewModel for the View which should own this dialog</param>
/// <returns>DialogResult of the View</returns>
bool? ShowDialog(object viewModel, IViewAware ownerViewModel);
/// <summary>
/// Display a MessageBox
/// </summary>