0

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).

Timo
  • 9,269
  • 2
  • 28
  • 58
  • 1
    `ShowMessageAsync` is an extension method. Do you include the `MahApps.Metro.Controls.Dialogs` namespace? – Dirk Sep 08 '17 at 12:20

1 Answers1

2

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;
appa yip yip
  • 1,404
  • 1
  • 17
  • 38