Example #1
0
 /// <summary>
 /// Opens a file save dialog box and returns the result.
 /// </summary>
 /// <returns>
 /// A nullable string representing the result of the dialog box.
 /// </returns>
 private async Task <string?> OpenSaveFileDialog()
 {
     return(await Dispatcher.UIThread.InvokeAsync(async() =>
                                                  await _fileDialogService.ShowSaveDialogAsync()));
 }