Hi all,
I'm modifying the URI of the WmsRasterSource with an event handler like this:
((WmsRasterSource)myWmsRasterLayer.ImageSource).SendingRequest += new EventHandler<sendingrequestwmsrastersourceeventargs>(myWmsRasterLayer_SendingRequest);</sendingrequestwmsrastersourceeventargs>
Then
void myWmsRasterLayer_SendingRequest(object sender, SendingRequestWmsRasterSourceEventArgs e)
{
....
// Getting the original URL:
string url = e.WebRequest.RequestUri.OriginalString;
.....
// Putting in the modified URL:
e.RequestUri = new Uri(url);
}
It works but it says that "e.RequestUri" is deprecated !
How should I do that now ?
Thank you.