private void ShowDialog(object sender, RoutedEventArgs args) { Dialog1 dialog = new Dialog1(); dialog.Owner = this; dialog.ShowDialog(); }
private async void ShowDialog(object sender, RoutedEventArgs args) { Dialog1 dialog = new Dialog1(); await dialog.ShowAsync(); }