UIスレッド上で処理を実行する。いっつも忘れて検索するからメモ。System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>{ .... });