So far as I can tell, the cursor being displayed is the ImageViewer's cursor property, but that seems to be set in the background by active tools etc. Is there a way for me to force the viewer to take the cursor off of a specific tool or otherwise lock the ImageViewer's cursor image?
Of note, I have tried overriding the cursor properties in the ImageViewer, PdfAnnotationTool, and CompositeVisualTool and I that gets things close (specifically the ImageViewer works the best) however it dramatically slows down drawing ink annotations (I assume because it's constantly flipping back and forth between cursors under the hood somewhere). It also sometimes keeps my cursor around even when I do the following:
Code: Select all
public class MyImageViewer : ImageViewer
{
private Cursor _lockCursor = null;
public void LockCursor(Cursor lockCursor)
{
_lockCursor = lockCursor;
}
public override Cursor Cursor
{
get
{
if (_lockCursor != null)
{
return _lockCursor;
}
else
{
return base.Cursor;
}
}
set => base.Cursor = value;
}
}
Thanks!