I have a value converter and I want to convert a key into an object and return in. I convert the object by calling a web service…
Great… but the problem is the web service is async. How would you typically get this done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bind to the object in your ViewModel, in the ViewModel make your async call and when the completed event is called, set the property you are binding to and make sure to call the onchange event.
this way the item will be retrieved and when it runs through your converter you will already have the value.