Reputation: 5861
I didn't really find any way to show SimpleDialog
internally in MetroWindow
. Is it possible?
Note: SimpleDialog
has been renamed with CustomDialog
.
Upvotes: 1
Views: 233
Reputation: 7004
I was just looking at this myself. To show the dialog internally you use the ShowMetroDialogAsync Method on the MetroWindow:
From a user control:
((MetroWindow)Window.GetWindow(this)).ShowMetroDialogAsync(myMetroDialog);
And you can close it from inside the dialog using the MetroWindow.HideMetroDialogAsync:
parentWindow.HideMetroDialogAsync(this);
Upvotes: 0
Reputation: 5078
Have you seen the documentation for dialogs? I also recommend to have a look at the sample application.
Upvotes: 1