Reputation: 3491
I have a function a time consuming operation that is done I want to start and end operations appear to be user (By statusbar control) But when performed function, both text executed at the end of function. (user can not sees "Start Operation ...") What solution do you recommend to me?
private void btnUpdateDataBase_Click(object sender, RoutedEventArgs e)
{
TextBlockStatus.Text = "Start Operation ...";
//Time consuming operation
TextBlockStatus.Text = "End Operation ...";
}
Upvotes: 1
Views: 343
Reputation: 7154
you need to move the execution to another thread. Do the following:
Upvotes: 1