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);
}
}
It's a bug at 1.1. It is fixed at 1.2. Your code looks fine.