Skip to content

Quick start

Maurício Vielmo Schmaedeck edited this page Aug 9, 2019 · 5 revisions

⚠️ If you haven't downloaded and installed the package, take a look at Downloading and installing

Creating a DialogContainer

A DialogContainer is a control that will hold your dialogs.

Add it to your Window (or other control) as you would for any other element. Make sure it is visible and on top of the others.

<Window xmlns:dialogs="clr-namespace:SimpleDialogs.Controls;assembly=SimpleDialogs"
        [OTHER STUFF]>
    <Grid>
        [YOUR OTHER ELEMENTS]

        <dialogs:DialogContainer />
    </Grid>
</Window>

Showing a dialog

After creating a container, you can show a dialog using DialogManager.ShowDialogAsync(object sender, BaseDialog dialog).

Hiding a dialog

To hide a specific dialog, use DialogManager.CloseDialog(BaseDialog dialog)

Clone this wiki locally