Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Suspending the ViewExtentsChanged Event

$
0
0
Is there anyway to suspend the ViewExtentsChangedEvent?
I have tried:

Map.Layers.SuspendEvents();
Map.MapFrame.SuspendEvents();
var mapFrame = Map.MapFrame as MapFrame;
mapFrame.SuspendChangeEvent();
mapFrame.SuspendEvents();
var map = Map as Map;
map.SuspendLayout();

None of the above seem to prevent the following from firing:

mapFrame.ViewExtentsChanged += MapFrameOnViewExtentsChanged;

In browsing through the Trunk I noticed that the LayerFrame seems to have a protected function called "SuspendExtentChanged" Should I be using this? How are we supposed to access it? Sorry, if this is a really simple question, but I feel like I have been banging my head against this too long.

thanks
-j

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>