I have implemented functionality for zoom to previous and zoom to next extent. It was working on the previous versions. The code attached is happening when the user clicks a button on the toolbar:
case "PreviousExtent": // ButtonTool
nextExtent.Push(winformsMap1.CurrentExtent);
winformsMap1.ZoomToPreviousExtent();
winformsMap1.Refresh();
break;
case "NextExtent": // ButtonTool
// Place code here
if (nextExtent.Count > 0)
{
winformsMap1.CurrentExtent = nextExtent.Pop();
winformsMap1.Refresh();
}
break;