I want to know how to bind WPF controls to a WCF Service, I only find references to bind to a WCF Data Service
Asked
Active
Viewed 722 times
1 Answers
1
You need to first make a call to access data from the service. See this introduction for how to do that. (It sounds like you already have an existing service so you will just need to consume it.) Once you have successfully retrieved data from the service you can set the data context of your view (I assume you are using vanilla WPF without an MVVM setup since this question is basic) and bind to the data.
Edit: Here is a tutorial describing what you need.

Oren Hizkiya
- 4,420
- 2
- 23
- 33
-
Thank you for answering. I'm studying wcf, I want to build a wpf app that two way binds its controls to a viw model which in turn binds it's properties to a wcf service. But I start with the basics. BTW, I know how to retrieve data, but how do I set the context from a wcf service?. For Data Services I see that they do something like new dataContext(new Uri("
")), but with a complete WCF Service I don't know. If you know of a page that explains it all to me (two way binding wpf controls to a view model which in turn are bound to a wcf service), I'll appreciate it. – Rafael Apr 02 '14 at 13:34 -
Ok, I'll check it out. – Rafael Apr 02 '14 at 14:41