Skip to content

Commit

Permalink
fix MahApps Progress sample
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Jun 30, 2016
1 parent c8135c1 commit e2091ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MahMaterialDragablzMashUp/DialogsViewModel.cs
Expand Up @@ -44,7 +44,7 @@ private void InputDialog()
DialogCoordinator.Instance.ShowInputAsync(this, "MahApps Dialog", "Using Material Design Themes", metroDialogSettings);
}

private void ProgressDialog()
private async void ProgressDialog()
{
var metroDialogSettings = new MetroDialogSettings
{
Expand All @@ -53,12 +53,15 @@ private void ProgressDialog()
SuppressDefaultResources = true
};

DialogCoordinator.Instance.ShowProgressAsync(this, "MahApps Dialog", "Using Material Design Themes (WORK IN PROGRESS)", true, metroDialogSettings);
var controller = await DialogCoordinator.Instance.ShowProgressAsync(this, "MahApps Dialog", "Using Material Design Themes (WORK IN PROGRESS)", true, metroDialogSettings);
controller.SetIndeterminate();
await Task.Delay(3000);
await controller.CloseAsync();
}

private void ShowLeftFlyout()
{
((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen = true;
((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen = !((MainWindow)Application.Current.MainWindow).LeftFlyout.IsOpen;
}
}
}

0 comments on commit e2091ed

Please sign in to comment.