Beispiel #1
0
 void _hvm_CenterUpdates(Client.Controls.Map.Location southWest, Client.Controls.Map.Location northEast)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         Map.ZoomToBounds(southWest, northEast);
     }));
 }
Beispiel #2
0
        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();
        }