5 using System.Windows.Threading;
6 using SiliconStudio.Presentation.Services;
11 namespace SiliconStudio.Presentation.Dialogs
15 private readonly Dispatcher dispatcher;
19 if (dispatcher == null)
throw new ArgumentNullException(
"dispatcher");
20 this.dispatcher = dispatcher;
21 ParentWindow = parentWindow;
24 public Window ParentWindow {
get;
private set; }
49 if (ParentWindow.DialogResult != dialogResult)
51 ParentWindow.DialogResult = dialogResult;
SiliconStudio.Presentation.Services.MessageBoxResult MessageBoxResult
IFileOpenModalDialog CreateFileOpenModalDialog()
Creates a modal file open dialog.
MessageBoxResult ShowMessageBox(string message, string caption, MessageBoxButton button, MessageBoxImage image)
Displays a modal message box.
SiliconStudio.Presentation.Services.MessageBoxImage MessageBoxImage
MessageBoxResult
An enum representing the button pressed by the user to close a message box.
MessageBoxImage
An enum representing the image to display in a message box.
void CloseCurrentWindow(bool?dialogResult=null)
Attempts to close the current window.
IFileSaveModalDialog CreateFileSaveModalDialog()
Creates a modal file save dialog.
MessageBoxButton
An enum representing the buttons to display in a message box.
An interface representing a modal file save dialog.
An interface to invoke dialogs from commands implemented in view models
An interface representing a modal file open dialog.
An interface representing a modal folder selection dialog.
IFolderOpenModalDialog CreateFolderOpenModalDialog()
Create a modal folder open dialog.
DialogService(Dispatcher dispatcher, Window parentWindow)
SiliconStudio.Presentation.Services.MessageBoxButton MessageBoxButton