public Magnifier_MapTool() { //Only enable for 2D view if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map) return; mapControlWindow = new MapControlWindow(); mapControlWindow.Show(); }
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)); }
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); }
public Magnifier_MapTool() { //Only enable for 2D view if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map) { return; } mapControlWindow = new MapControlWindow(); mapControlWindow.Show(); }
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(); }