using System.ComponentModel; using System.Windows; using System.Windows.Controls; namespace Test { public partial class ProgressWindow : Window { public ProgressWindow() { InitializeComponent(); } public void ProgressBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) { } public void setProgressBarValue(int progress) { ProgressBar.Value = progress; } } }