HttpWebRequest socket operation during WPF binding in a property getter
Posted
by wpfwannabe
on Stack Overflow
See other posts from Stack Overflow
or by wpfwannabe
Published on 2010-06-08T18:46:17Z
Indexed on
2010/06/08
18:52 UTC
Read the original article
Hit count: 416
In a property getter of a C# class I am doing a HTTP GET
using HttpWebRequest
to some https address. WPF's property binding seems to choke on this. If I try to access the property in a simple method e.g. Button_Clicked
, it works perfectly. If I use WPF binding to access the same property, the app seems to be blocked on a socket's recv()
method indefinitely.
Is it a no-no to do this sort of thing during binding? Is app in some special state during binding?
Is there an easy way for me to overcome this limitation and still maintain the same basic idea?
© Stack Overflow or respective owner