Hello,
When playing with the map only with the mouse (dble-click, wheel, ...), the integrated zoombar works well.
But I implemented buttons in order to make a zoom to the fulle map, and buttons that makes zoomin and zoomout too.
And when using thoses buttons, the zoombar is not modified, and stays to the old zoomlevel.
Here is the code I used :
map.CurrentExtent = GisParameters.FullMapExtent;
map.Refresh();
or :
ScreenPointF offset = ExtentHelper.ToScreenCoordinate(map.CurrentExtent, worldPointOffset, (float) map.ActualWidth, (float) map.ActualHeight);
map.CurrentExtent = ExtentHelper.ZoomIntoOffsetPoint(map.CurrentExtent, (float) map.ActualWidth, (float) map.ActualHeight, offset, ZoomPercentage);
map.Refresh();
I've the problem with thoses both code samples.
Thanks,
Guillaume.