private void KmlLayer_Initialized(object sender, EventArgs e) { var l = sender as KmlLayer; if (l.Graphics != null) { foreach (var g in l.Graphics) { if (g is Graphic) { (g as Graphic).MouseEnter += Graphic_MouseEnter; (g as Graphic).MouseLeave += Graphic_MouseLeave; } } } } void Graphic_MouseLeave(object sender, MouseEventArgs e) { this.Cursor = Cursors.Arrow; } void Graphic_MouseEnter(object sender, MouseEventArgs e) { this.Cursor = Cursors.Hand; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.