4 using System.Windows.Threading;
5 using Microsoft.WindowsAPICodePack.Dialogs;
6 using SiliconStudio.Presentation.Services;
8 namespace SiliconStudio.Presentation.Dialogs
12 private readonly Dispatcher dispatcher;
13 private readonly
Window parentWindow;
18 this.dispatcher = dispatcher;
19 this.parentWindow = parentWindow;
23 public object DataContext {
get; set; }
27 if (dispatcher.CheckAccess())
31 return dispatcher.Invoke(() => (
DialogResult)Dialog.ShowDialog(parentWindow));
DialogResult InvokeDialog()
An interface representing a modal dialog.
DialogResult
An enum representing the result of a dialog invocation.
ModalDialogBase(Dispatcher dispatcher, Window parentWindow)