I am trying to get events for layers such as visible on/off or symbology change.
I can get the DrawCompleteEvent but it is very hard to understand what was changed.
I did not get the MapMemberPropertiesChangedEvent fire when I turn visibility on/off.
Any other ideas?
Thanks
Does the PropertyChanged event fire for a featurelayer when its IsVisible property is changed?
If it does, I suppose you'd need to traverse through the layers to handle the situation where IsVisible is true, but it's contained within a GroupLayer whose IsVisible is false.
Hi Kirk
If I have to check all layers in TOC and compare to the previous state I can use the Draw event.
It is not simple to understand symbology change or other small changes (labeling, layer name etc.)
Yeah, I don't see an easy way to do that.
Maybe try maintaining a List<string> somewhere and populate it with each layer's serialized definition.
That way, when the after DrawCompleteEvent fires you could loop through each layer, serialize its definition and compare with the string in the list to see if anything has changed (like labeling, layer name etc.)