using ESRI.ArcGIS.Carto; using KGIS.Framework.Utils; namespace Kingo.Plugin.MapView.Views { /// /// FrmAerialView.xaml 的交互逻辑 /// public partial class FrmAerialView : BaseWindow { UcAerialView aerialVIew = null; public FrmAerialView(ILayer layer) { InitializeComponent(); this.AllowsTransparency = false; if (aerialVIew == null) aerialVIew = new UcAerialView(); hostMapView.Child = aerialVIew; aerialVIew.InitView(layer); this.Closed += (s, e) => { if (aerialVIew != null) { hostMapView.Child = null; aerialVIew.Close(layer); } }; } } }