Метод | Описание | |
---|---|---|
DialogService ( |
Initializes a new DialogService instance.
|
|
ShowFolderBrowseDialogAsync ( string description ) : Task |
Displays a folder browser dialog to the user.
|
|
ShowMessageBoxDialogAsync ( string message, string title, MessageBoxButton messageBoxButton, MessageBoxIcon messageBoxIcon ) : Task |
Displays a message box to the user.
|
|
ShowOpenFileDialogAsync ( string title, IEnumerable |
Displays a file open dialog to the user.
|
|
ShowOpenFileDialogAsync ( string title, IEnumerable |
Displays a file open dialog to the user.
|
|
ShowSaveFileDialogAsync ( string title, IEnumerable |
Displays a file save dialog to the user.
|
public DialogService ( |
||
applicationService | A service, which can be used to manage the application life-cycle. | |
Результат | Microsoft.Win32 |
public ShowFolderBrowseDialogAsync ( string description ) : Task |
||
description | string | The description that is displayed inside the folder browser dialog. |
Результат | Task |
public ShowMessageBoxDialogAsync ( string message, string title, MessageBoxButton messageBoxButton, MessageBoxIcon messageBoxIcon ) : Task |
||
message | string | The message that is to be displayed. |
title | string | The title of the message box. |
messageBoxButton | MessageBoxButton | Determines the buttons that are displayed in the message box. |
messageBoxIcon | MessageBoxIcon | Determines the icon that is displayed in the message box. |
Результат | Task |
public ShowOpenFileDialogAsync ( string title, IEnumerable |
||
title | string | The title of the file open dialog. |
filter | IEnumerable |
The file type restrictions, that should be put on the file open dialog. |
isMultiselect | bool | Determines whether the user is able to select multiple files. |
Результат | Task |
public ShowOpenFileDialogAsync ( string title, IEnumerable |
||
title | string | The title of the file open dialog. |
filter | IEnumerable |
The file type restrictions, that should be put on the file open dialog. |
Результат | Task |
public ShowSaveFileDialogAsync ( string title, IEnumerable |
||
title | string | The title of the file save dialog. |
filter | IEnumerable |
The file type restrictions, that should be put on the file save dialog. |
defaultExtension | string | The file extension, that is used by default for the new file (without dot and star, e.g. "txt" instead of "*.txt"). |
Результат | Task |