C# Class Windows.Mvvm.Services.Dialog.DialogService

Represents a service for viewing dialogs. This is needed to abstract away the details from the view models, so that the view models can be unit tested better (view models should not have any dependencies to view code).
Datei anzeigen Open project: lecode-official/mvvm-framework

Public Methods

Method Description
ShowFolderBrowseDialogAsync ( string commitButtonText ) : Task>

Displays a folder browser dialog to the user.

ShowFolderBrowseDialogAsync ( string commitButtonText, PickerLocationId suggestedStartLocation, PickerViewMode viewMode ) : Task>

Displays a folder browser dialog to the user.

ShowMessageBoxDialogAsync ( string message, string title, MessageBoxDialogCommands messageBoxDialogCommands ) : System.Threading.Tasks.Task

Shows a message box dialog.

ShowMessageBoxDialogAsync ( string message, string title, MessageBoxButton messageBoxButton ) : Task

Shows a message box dialog.

ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, PickerLocationId suggestedStartLocation, PickerViewMode viewMode, bool isMultiselect ) : Task>>

Displays a file open dialog to the user.

ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, bool isMultiselect ) : Task>>

Displays a file open dialog to the user.

ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter ) : Task>

Displays a file open dialog to the user.

ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, PickerLocationId suggestedStartLocation, PickerViewMode viewMode ) : Task>

Displays a file open dialog to the user.

ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices ) : Task>

Displays a save file dialog to the user.

ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, StorageFile suggestedSaveFile ) : Task>

Displays a save file dialog to the user.

ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, StorageFile suggestedSaveFile, PickerLocationId suggestedStartLocation ) : Task>

Displays a save file dialog to the user.

ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, string suggestedFileName, string defaultExtension ) : Task>

Displays a save file dialog to the user.

ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, string suggestedFileName, string defaultFileExtension, PickerLocationId suggestedStartLocation ) : Task>

Displays a save file dialog to the user.

Method Details

ShowFolderBrowseDialogAsync() public method

Displays a folder browser dialog to the user.
public ShowFolderBrowseDialogAsync ( string commitButtonText ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a folder.
return Task>

ShowFolderBrowseDialogAsync() public method

Displays a folder browser dialog to the user.
public ShowFolderBrowseDialogAsync ( string commitButtonText, PickerLocationId suggestedStartLocation, PickerViewMode viewMode ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a folder.
suggestedStartLocation PickerLocationId The suggested start location, which is initally displayed by the browse folder dialog.
viewMode PickerViewMode The view mode, which determines whether the browse folder dialog displays the folders as a list or as thumbnails.
return Task>

ShowMessageBoxDialogAsync() public method

Shows a message box dialog.
public ShowMessageBoxDialogAsync ( string message, string title, MessageBoxDialogCommands messageBoxDialogCommands ) : System.Threading.Tasks.Task
message string The message that is displayed in the message box dialog.
title string The title that is displayed in the message box dialog.
messageBoxDialogCommands MessageBoxDialogCommands The commands, which are bound to the buttons of the message box dialog.
return System.Threading.Tasks.Task

ShowMessageBoxDialogAsync() public method

Shows a message box dialog.
public ShowMessageBoxDialogAsync ( string message, string title, MessageBoxButton messageBoxButton ) : Task
message string The message that is displayed in the message box dialog.
title string The title that is displayed in the message box dialog.
messageBoxButton MessageBoxButton The message box buttons that are to be displayed in the message box dialog.
return Task

ShowOpenFileDialogAsync() public method

Displays a file open dialog to the user.
public ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, PickerLocationId suggestedStartLocation, PickerViewMode viewMode, bool isMultiselect ) : Task>>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select one or multiple files.
fileTypeFilter IEnumerable The file type filter, which determines which kinds of files are displayed to the user.
suggestedStartLocation PickerLocationId The suggested start location, which is initally displayed by the open file dialog.
viewMode PickerViewMode The view mode, which determines whether the open file dialog displays the files as a list or as thumbnails.
isMultiselect bool Determines whether the user is able to select multiple files.
return Task>>

ShowOpenFileDialogAsync() public method

Displays a file open dialog to the user.
public ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, bool isMultiselect ) : Task>>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select one or multiple files.
fileTypeFilter IEnumerable The file type filter, which determines which kinds of files are displayed to the user.
isMultiselect bool Determines whether the user is able to select multiple files.
return Task>>

ShowOpenFileDialogAsync() public method

Displays a file open dialog to the user.
public ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeFilter IEnumerable The file type filter, which determines which kinds of files are displayed to the user.
return Task>

ShowOpenFileDialogAsync() public method

Displays a file open dialog to the user.
public ShowOpenFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, PickerLocationId suggestedStartLocation, PickerViewMode viewMode ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeFilter IEnumerable The file type filter, which determines which kinds of files are displayed to the user.
suggestedStartLocation PickerLocationId The suggested start location, which is initally displayed by the open file dialog.
viewMode PickerViewMode The view mode, which determines whether the open file dialog displays the files as a list or as thumbnails.
return Task>

ShowSaveFileDialogAsync() public method

Displays a save file dialog to the user.
public ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeChoices IEnumerable The file type filter, which determines which kinds of files are available to the user.
return Task>

ShowSaveFileDialogAsync() public method

Displays a save file dialog to the user.
public ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeFilter, StorageFile suggestedSaveFile ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeFilter IEnumerable The file type filter, which determines which kinds of files are available to the user.
suggestedSaveFile Windows.Storage.StorageFile The file which is suggested to the user as the file to which he is saving.
return Task>

ShowSaveFileDialogAsync() public method

Displays a save file dialog to the user.
public ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, StorageFile suggestedSaveFile, PickerLocationId suggestedStartLocation ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeChoices IEnumerable The file type filter, which determines which kinds of files are available to the user.
suggestedSaveFile Windows.Storage.StorageFile The file which is suggested to the user as the file to which he is saving.
suggestedStartLocation PickerLocationId The suggested start location, which is initally displayed by the save file dialog.
return Task>

ShowSaveFileDialogAsync() public method

Displays a save file dialog to the user.
public ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, string suggestedFileName, string defaultExtension ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeChoices IEnumerable The file type filter, which determines which kinds of files are available to the user.
suggestedFileName string The suggested name of the file that is to be saved.
defaultExtension string The suggested extension of the file that is to be saved.
return Task>

ShowSaveFileDialogAsync() public method

Displays a save file dialog to the user.
public ShowSaveFileDialogAsync ( string commitButtonText, IEnumerable fileTypeChoices, string suggestedFileName, string defaultFileExtension, PickerLocationId suggestedStartLocation ) : Task>
commitButtonText string The text, that is displayed on the commit button, that the user has to press to select a file.
fileTypeChoices IEnumerable The file type filter, which determines which kinds of files are available to the user.
suggestedFileName string The suggested name of the file that is to be saved.
defaultFileExtension string The suggested extension of the file that is to be saved.
suggestedStartLocation PickerLocationId The suggested start location, which is initally displayed by the save file dialog.
return Task>