Inheritance: System.Windows.Controls.ContentControl
示例#1
0
 public override void Tap(GestureEventArgs e)
 {
     base.Tap(e);
     Pushpin pushpin = new Pushpin();
     Point2D point = _map.ScreenToMap(e.GetPosition(_map));
     pushpin.Location = point;
     _eLayer.AddChild(pushpin);
     _pushpins.Add(pushpin);
 }
 void _addFeature_Tick(object sender, EventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
         {
             if (_queue.Count > 0)
             {
                 Point2D point = _queue.Dequeue();
                 Pushpin pushpin = new Pushpin();
                 pushpin.Location = point;
                 _pushpinLayer.AddChild(pushpin);
             }
             else
             {
                 _addFeature.Stop();
                 _addFeature.Tick -= _addFeature_Tick;
             }
         });
 }