private async Task CreateNewFileAsync() { var parameter = new CreateNodeNavigationParameter(_directoryService.SelectedDirectory); var result = await _dialogService.ShowDialogAsync <CreateFileDialogResult, CreateNodeNavigationParameter>( nameof(CreateFileDialogViewModel), parameter); if (!string.IsNullOrEmpty(result?.FileName)) { _operationsService.CreateFile(_directoryService.SelectedDirectory, result.FileName); } }