Layer.EnabledChanged Event
Occurs when the value of the Enabled property has changed.
Syntax
public event LayerEventHandler EnabledChanged
Remarks
This event is fired on the same thread that modifies the Enabled property.
Note that if a layer is automatically turned off due to an error (see DisableOnError), the event could be fired on the GUI thread, during on ongoing call to for instance View.Update. But it could also be fired from a background thread under a tile layer. So if you use DisableOnError, your handler for this event should typically just push a message to the GUI thread and invoke the error handling code there.
Platforms
Windows, Linux, Android