On my WPF page I have, for example, an image (one or more) like this:
<Image Source="{Binding Path=PicURL}"/>
Also, I have a Settings page with an option to switch ON/OFF the usage of Internet Proxy Settings globally inside my entire Application. If to speak about manual web requests, I can solve it, for example, like this:
HttpWebRequest request = ( HttpWebRequest )WebRequest.Create( ... );
if( UseProxy ) request.Proxy.Credentials = CredentialCache.DefaultCredentials;
else req.Proxy = null;
But it doesn`t work on WPF controls like Image where content is based on URLs and Internet Proxy Settings are used.
Is there a way to switch proxy globally inside entire app at run-time?