private void GeoMap_SeriesMouseLeftButtonUp(object sender, DataChartMouseButtonEventArgs e) { _selectedEarthQuake = e.Item as EarthQuakeViewModel; _vm.SelectedEarthQuake = null; ShowUpDetailsContorol(); }
public static void OnMapMouseDoubleClick(object sender, DataChartMouseButtonEventArgs e) { if (SeriesMouseDoubleClick != null) { SeriesMouseDoubleClick(sender, e); } }
static void OnSeriesMouseLeftButtonUp(object sender, DataChartMouseButtonEventArgs e) { SeriesMouseDoubleClicks++; if (SeriesMouseDoubleClicks >= 2) { OnMapMouseDoubleClick(sender, e); } }
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); } }
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; } }
static void OnSeriesMouseLeftButtomDown(object sender, DataChartMouseButtonEventArgs e) { //IsSeriesMouseDoubleClickOn = true; }
private void OnMapSeriesMouseRightButtonDown(object sender, DataChartMouseButtonEventArgs e) { }