Playing with Prisms TaskExtension

This commit is contained in:
2020-05-04 22:05:14 +02:00
parent 26094d25b4
commit 90a0f89010
5 changed files with 180 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ using YamlDotNet.Serialization;
namespace ModernWpfPlayground
{
// ReSharper disable once ClassNeverInstantiated.Global
public class MainWindowViewModel : BaseViewModel
{
private const string AppName = "TaBEA 3.0.0";
@@ -21,7 +22,7 @@ namespace ModernWpfPlayground
public MainWindowViewModel()
{
ShowDialogCommand = new DelegateCommand(async () => await ShowDialogAsync().ConfigureAwait(false));
ShowDialogCommand = new DelegateCommand(() => ShowDialogAsync().Await());
CloseCommand = new DelegateCommand(() => Application.Current.Shutdown());
OpenViewModelCommand = new DelegateCommand(LoadViewModel);
SaveViewModelCommand = new DelegateCommand(SaveViewModel);