Ryan,
I think this is an issue with our stuff. I also did not get the DrawCore to fire. I added some code to set the this.Lock.IsDirty = true; and that made it fire all the time. I included my code that worked. It just draws a small red circle wherever the cursor is at.
David
public class TestInteractiveOverlay : InteractiveOverlay
{
ScreenPointF currentScreenPosition = new ScreenPointF();
protected override InteractiveResult MouseMoveCore(InteractionArguments interactionArguments)
{
InteractiveResult interactiveResult = new InteractiveResult();
interactiveResult.DrawThisOverlay = InteractiveOverlayDrawType.Draw;
interactiveResult.ProcessOtherOverlays = ProcessOtherOverlaysMode.ProcessOtherOverlays;
currentScreenPosition = new ScreenPointF(interactionArguments.ScreenX,interactionArguments.ScreenY);
this.Lock.IsDirty = true;
return interactiveResult;
}
protected override void DrawCore(GeoCanvas canvas)
{
canvas.DrawEllipse(currentScreenPosition, 10, 10, null, new GeoSolidBrush(GeoColor.StandardColors.Red), DrawingLevel.LevelOne, 0, 0, PenBrushDrawingOrder.PenFirst);
}
}