Hi,
is there any way how to wire SpatialReferenceChanged event from my add-in extension class?
I tried to do something like:
But it doesn't work.
Thank you.
is there any way how to wire SpatialReferenceChanged event from my add-in extension class?
I tried to do something like:
Code:
protected override void OnStartup()
{IActiveViewEvents_Event activeViewEvent = (IActiveViewEvents_Event)ArcMap.Document.ActiveView.FocusMap;activeViewEvent.SpatialReferenceChanged += new IActiveViewEvents_SpatialReferenceChangedEventHandler(OnSpatialReferenceChanged);}
void OnSpatialReferenceChanged()
{System.Windows.Forms.MessageBox.Show("SpatialReferenceChanged");}
Thank you.