void _hvm_CenterUpdates(Client.Controls.Map.Location southWest, Client.Controls.Map.Location northEast) { Dispatcher.BeginInvoke(new Action(() => { Map.ZoomToBounds(southWest, northEast); })); }
private void _vm_CenterUpdates(Client.Controls.Map.Location southWest, Client.Controls.Map.Location northEast) { cMap.Visibility = Visibility.Visible; var slowTask = new Task(delegate { Thread.Sleep(100); }); slowTask.ContinueWith(delegate { Dispatcher.BeginInvoke(new Action(() => { cMap.ZoomToBounds(southWest, northEast); })); }); slowTask.Start(); }