Archive for the ‘Silverlight’ Category
.Net RIA Service Part 1
What is a .Net RIA Service
It is set of libraries and tools given, to help develop the Rich internet application in much easier fashion. When we develop silverlight application we need to interact with the server for various reasons. Now .Net RIA Service will make that much easier and better.
In our normal silverlight application we used to interact with the server from the client code to move data in async fashion and managing it. But now .NET RIA Service will just hide it all from you and handles all those stuff. You can concentrate more on what to do with data rather than how to get the data.
It is link between the presentation layer and business logic layer. You can add various kind of validation also to be performed.
you can download these services from here
Now i am developing sample application of RIA Service with silverlight and will post it with complete working details of .net RIA Service
Creating Simple Application in Silverlight
For creating silverlight project you should visual studio 2008 sp1 and download sliverlight tools for vs2008 from this link
Microsoft® Silverlight™ Tools for Visual Studio 2008 SP1
After installation. Open visual studio 2008 and click create new project window and select silver tree node under the visual C# category. Select silver light application and create project.
It will ask how you want to run your silver light application. There are two option first to add new project in which your application will be hosted or in second the it will automatically generate one dummy test page for you. We will select first option.
Now we have two projects listed in solution explorer.
Select silverlight application and open page.xaml. This is are main page, Here we will write some of the xaml commands as written below. With the help of these commands we added textbox and button to our page.
On click of this button we will set the content of the textbox to the button caption. For that we will right code in the button click event in page.xaml.cs file
If you want to design your application more professional you can use Microsoft Expression Blend 2. Also install Service Pack 1 for Blend 2 from following link




