. , , .
. , , , , ( , , ). IsBusy .
, . - . , , , .
BackgroundWorker DoWork , .
myButton_Click(object sender, RoutedEventArgs e)
{
isbusyindicator1.IsBusy = true;
var bw = new BackgroundWorker();
bw.DoWork += (s, args) =>
{
//Stuff that takes some time
};
bw.RunWorkerCompleted += (s, args) =>
{
isbusyindicator1.IsBusy = false;
};
bw.RunWorkerAsync();
}
, , . IsBusy .