Код: Выделить всё
Application.Current.Dispatcher.InvokeAsync(Action).Wait();
Код: Выделить всё
Application.Current.Dispatcher.Invoke(Action);
Подробнее здесь: https://stackoverflow.com/questions/793 ... vokeaction
Код: Выделить всё
Application.Current.Dispatcher.InvokeAsync(Action).Wait();
Код: Выделить всё
Application.Current.Dispatcher.Invoke(Action);