Sometimes you want to just pass values to a dialog, but other times, you want events in the dialog to trigger things before the dialog is actually closed. Here's an example.
private async Task OpenFiltersDialog()
{
var options = new DialogOptions
{
CloseOnEscapeKey = true,
Position = DialogPosition.CenterLeft
};
var originalFiltersViewModel = AccountPickerState.AccountFiltersViewModel;