I have a Customer layer which inherits BaseCustomLayer.
I add it to my MapControl via addLayer but the function public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ITrackCancel trackCancel)
is never hit.
The Custom Layer appears checked in the TOC.
I think I must be missing some initialization one-liner.
Best Answer
Here's a minimalist custom layer:
I created a new Project and choosing C#>ArcGIS>Extending ArcObjects>Mapcontrol Application, then added a new menuitem on the menu of MainForm with this:
When I run I see this output as I pan around the map: