Попробуйте вызвать код из диспетчера :
Application.Current.Dispatcher.Invoke((Action)delegate{ // your code });