MahApps.Metro MetroWindow.ShowMessageAsync does not exist

674 Views Asked by At

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?

Update

I've overseen that this is an extension method (which forces me to use the this qualifier, which I didn't).

1

There are 1 best solutions below

0
On

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;