示例#1
0
        private void GeoMap_SeriesMouseLeftButtonUp(object sender, DataChartMouseButtonEventArgs e)
        {
            _selectedEarthQuake    = e.Item as EarthQuakeViewModel;
            _vm.SelectedEarthQuake = null;

            ShowUpDetailsContorol();
        }
示例#2
0
 public static void OnMapMouseDoubleClick(object sender, DataChartMouseButtonEventArgs e)
 {
     if (SeriesMouseDoubleClick != null)
     {
         SeriesMouseDoubleClick(sender, e);
     }
 }
示例#3
0
 static void OnSeriesMouseLeftButtonUp(object sender, DataChartMouseButtonEventArgs e)
 {
     SeriesMouseDoubleClicks++;
     if (SeriesMouseDoubleClicks >= 2)
     {
         OnMapMouseDoubleClick(sender, e);
     }
 }
示例#4
0
        private void RegionMap_SeriesMouseLeftButtonDown(object sender, DataChartMouseButtonEventArgs e)
        {
            // handle section of the continent regions
            e.Handled = true;
            var item = e.Item as SelectableShapeElement;

            if (item != null)
            {
                OnShapeElementClicked(item);
            }
        }
示例#5
0
        private void OnMapSeriesMouseDoubleClick(object sender, DataChartMouseButtonEventArgs e)
        {
            var seriesName = e.Series.Name;
            var mousePoint = e.GetPosition(sender as UIElement);

            var seriesItem = e.Item as IGeoNavigational;

            if (seriesItem != null)
            {
                var geoPoint = this.Map.GetGeographicPoint(mousePoint);
                var geoRect  = seriesItem.NavigationRect(geoPoint);
                if (geoRect == Rect.Empty)
                {
                    return;
                }

                //TODO this.Map.ZoomMapToRegion(new GeoRect(geoRect), TimeSpan.FromSeconds(3));
                //var rect = this.Map.GetZoomFromGeographic(geoRect);
                //this.Map.WindowRect = rect;
            }
        }
示例#6
0
 static void OnSeriesMouseLeftButtomDown(object sender, DataChartMouseButtonEventArgs e)
 {
     //IsSeriesMouseDoubleClickOn = true;
 }
示例#7
0
 private void OnMapSeriesMouseRightButtonDown(object sender, DataChartMouseButtonEventArgs e)
 {
 }