public Magnifier_MapTool()
 {
   //Only enable for 2D view
   if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     return;
   mapControlWindow = new MapControlWindow();
   mapControlWindow.Show();
 }
예제 #2
0
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
     if (mapControlWindow != null)
     {
         mapControlWindow.Close();
         mapControlWindow = null;
     }
     return(base.OnToolDeactivateAsync(hasMapViewChanged));
 }
예제 #3
0
 protected override Task OnToolActivateAsync(bool active)
 {
     if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         mapControlWindow = new MapControlWindow();
         mapControlWindow.Show();
     }
     return(base.OnToolActivateAsync(active));
 }
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
   if (mapControlWindow != null)
   {
     mapControlWindow.Close();
     mapControlWindow = null;
   }
   return base.OnToolDeactivateAsync(hasMapViewChanged);
 }
 protected override Task OnToolActivateAsync(bool active)
 {
   if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
   {
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
   }
   return base.OnToolActivateAsync(active);
 }
예제 #6
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
 }
예제 #7
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow()
     {
         Owner = FrameworkApplication.Current.MainWindow
     };
     mapControlWindow.Show();
 }