wpf 다른 스레드가 이 개체를 소유하고 있어 호출한 스레드가 해당 개체에 액세스할 수 없습니다.
Posted by Albert 3810Day 26Min 41Sec ago [2014-11-14]
wpf 로 스레드가 작동시 뷰에 관련 액션을 취할때
"스레드가 이 개체를 소유하고 있어 호출한 스레드가 해당 개체에 액세스할 수 없습니다."
애러가뜨는데 이럴때에는
ProgressBar.Dispatcher.Invoke(new System.Action(delegate()
{
ProgressBar.Maximum = Convert.ToDouble(files.Length);
ProgressBar.Value = Convert.ToDouble(uploadedCnt);
}), DispatcherPriority.Normal);
Dispatcher로 처리하면 된다.^^