Next step of programming

Just another WordPress.com weblog

Archive for the ‘Silverlight’ Category

.Net RIA Service Part 1

without comments

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

Written by A.Sethi

September 3, 2009 at 10:05 am

Posted in Silverlight

Tagged with ,

Creating Simple Application in Silverlight

without comments

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.

Silverlight Application 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.

Silverlight Supporting/Hosting web page

Silverlight Supporting/Hosting web page

Now we have two projects listed in solution explorer.

Two Project Silverlight Application and Web Application

Two Project Silverlight Application and Web Application

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.

XAML code for the controls

XAML code for the controls

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

Button click event method

Button click event method


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

Microsoft Expression Blend™ 2 Service Pack

Written by A.Sethi

January 29, 2009 at 11:11 am

Posted in Silverlight

Tagged with ,