How to change the cursor of a maptool

2074
1
02-12-2016 07:06 AM
HarmBruinsma1
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);

     }

}

0 Kudos
1 Reply
CharlesMacleod
Esri Regular Contributor

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

0 Kudos