Skip to main content

An official website of the United States Government

Wpf Dialogs Instant

private void CancelButton_Click(object sender, RoutedEventArgs e)

public ProgressDialog(string title) InitializeComponent(); Title = title; Owner = Application.Current.MainWindow; public void UpdateProgress(int current, int total, string message) WPF Dialogs

var dialog = new MyDialog(); if (dialog.ShowDialog() == true) private void CancelButton_Click(object sender

Progress Dialog public partial class ProgressDialog : Window Title = title

// Save to saveFileDialog.FileName

private void Save()