... | @@ -16,7 +16,7 @@ UI 스레드가 아닌 스레드에서 UI 스레드로 접근하려 할 때도 |
... | @@ -16,7 +16,7 @@ UI 스레드가 아닌 스레드에서 UI 스레드로 접근하려 할 때도 |
|
___"The calling thread must be STA, because many UI components require this."___
|
|
___"The calling thread must be STA, because many UI components require this."___
|
|
|
|
|
|
|
|
|
|
해결방법은 Dispatcher의 Invoke 또는 BeginInvoke(Non-Blocking)를 호출하여 컨트롤을 업데이트 하면된다.
|
|
해결방법은 Dispatcher의 Invoke 또는 BeginInvoke(Asynchronize)를 호출하여 컨트롤을 업데이트 하면된다.
|
|
|
|
|
|
```csharp
|
|
```csharp
|
|
Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => {
|
|
Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => {
|
... | | ... | |