Mangesh
Mangesh

Reputation: 5861

Is it possible to show SimpleDialog internally?

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

Answers (2)

Joe
Joe

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

Thomas Freudenberg
Thomas Freudenberg

Reputation: 5078

Have you seen the documentation for dialogs? I also recommend to have a look at the sample application.

Upvotes: 1

Related Questions