private async void CashInButton_Click(object sender, RoutedEventArgs e) { var cashInWindow = new CashInWindow(); await DialogHost.Show(cashInWindow, "RootDialog"); loadTransactionsList(); }
private async void ExecuteRunDialog(object o) { //let's set up a little MVVM, cos that's what the cool kids are doing: var view = new CashInWindow(); //show the dialog var result = await DialogHost.Show(view); //check the result... Console.WriteLine("Dialog was closed, the CommandParameter used to close it was: " + (result ?? "NULL")); }