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
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