How to change the cursor of a maptool

1769
1
02-12-2016 07:06 AM
Highlighted
New Contributor

I have created a maptool and I want to change the cursor of the tool to my own one

The code below doesn't change the cursor on the map. What's wrong with the code?

Code:

internal class MapTool1 : MapTool

{

     protected override Task OnToolActivateAsync(bool active)

     {

          Cursor = Cursors.Pen;

          return base.OnToolActivateAsync(active);

     }

     protected override void OnToolMouseDown(MapViewMouseButtonEventArgs e)

     {

          base.OnToolMouseDown(e);

     }

}

Reply
0 Kudos
1 Reply
Highlighted
Esri Contributor

It's a bug at 1.1. It is fixed at 1.2. Your code looks fine.

Reply
0 Kudos