SyntaxFix
Write A Post
Hire A Developer
Questions
Try to invoke your code from the dispatcher:
Application.Current.Dispatcher.Invoke((Action)delegate{ // your code });