I'm afraid it is not clear to me how to get the WmsRasterLayer when only the WmsRasterSource is known.
Here's a code snippet of the event. I have the source, what's the code required to get its layer?
I can't see any properties of the source that correspond to layer. Nor does casting work.
Is it possible to get the layer from its source?
private static void SendingWebRequest(object sender, SendingWebRequestEventArgs TheEventArgs)
// get WmsRasterSource
TheWmsRasterSource = (WmsRasterSource)sender;
// get WmsRasterLayer
TheWmsRasterLayer = ???;