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; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.