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; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.