Silverlight 5 WCF RIA Services - Part 2
In this article we are going to continue to explore the WCF Ria Services with Silverlight 5.
As we saw in our prevoius example WCF Ria Services provide us with a
clean and simple way of binding our control to our data model .
Now lets go one step further I would like to design a Complete User Page using WCF Ria Services .
Lets get started . Create a new page NewPage.xaml .
Go to the Data Source .
Expand the Tree of the Article Entity .
Select the ArticleID and say customize .
Select the Associated Control as ComboBox .
Click ok . and the icon changes to combo box as shown below :
Simply Drag and Drop the Article Id on to the NewPage.xaml . The Design Page should now look as below :
Modify the App.xaml to make the NewPage.xaml as the start up and give it a run .
Now go back to the Data Source . select Title and customize .
Select the Associated Control as TextBlock .
Click Ok and the icon changes to TextBlock .
Similarly modify for the Body .
Drag and Drop both to the designer area .
Build and Run it . Title and Body corresponding to the article id are displayed .
Modify the article Id .
Title and Body are modified as shown below :
Behind the scene this was the code that was generated . Wow now that
would have been tough . Thanks to WCF Ria Services we were saved . All
the Binding work was taken care for you by Ria services Support .
In the Next Post we will learn about some advanced features of WCF Ria Services . Till Then . Happy Coding