Reputation: 9835
I just installed MahApps.Metro from nuget (version 1.5.0.23). The tutorial on the homepage tells me to open dialogs via
this.ShowMessageAsync(...) // in MainWindow : MetroWindow
but this method (or any other ShowXYZ
method) does not exist.
How do I open my dialog? Do I have to use the DialogCoordinator
?
I've overseen that this is an extension method (which forces me to use the this
qualifier, which I didn't).
Upvotes: 0
Views: 675
Reputation: 1454
As pointed out by Dirk in the comments, ShowMessageAsync
is an extension method, sou you have to use the Dialogs
namespace.
Just add the using and you should be fine:
using MahApps.Metro.Controls.Dialogs;
Upvotes: 2