1 sync.Post(delegate(object someState) 2 { 3 //your code here 4 }, null);
SyncronizationContext sync = SyncronizationContext.Current;