Beispiel #1
0
 private void cbxPercentage_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (this.IsLoaded)
     {
         String zoomString  = (String)cbxPercentage.SelectedItem;
         double currentZoom = Double.Parse(zoomString.Replace("%", ""));
         Map1.ZoomToScale(PrinterHelper.GetPointsPerGeographyUnit(Map1.MapUnit) / (currentZoom / 100));
         Map1.Refresh();
     }
 }