Feb 6, 2011

Dynamically Loading XAP File inside a Silverlight Parent XAP.

Hello all, tonight I just had one of the developer asking for Dynamic Loading XAP file inside a XAP file, in Silvelight 4.
I knew very well that, over Internet people may get various helps, but I feel to share this concept by developing a small demo application prepared by me.

Following is the stuff which I had thought before Developing:

1. I will Create Default Silverlight Application with a Host Page (i.e, Web Site Project will be added too)

2. Add New Silverlight Child Application to it. Compile it and get XAP

3. Will Download the Child XAP file over Client and then load it into the Control.



Step by Step Go through:
(1). Simply Create New Silverlight appliation with a Web Application Project


Do following code inside XAML (just to show an appropriate User Interface)



(2). Add New Silverlight Applicatin Project, Name it as (ChildToLoad).
It will give us a xap file which we will be going to download in side our main project.
For better understanding, of other Silverlight features, I have taken below shown UserInterface and coded accordingly.




(3). To Download The xap File Dynamically, use WebClient object and then parse the downloaded stream into a .xap file Render it into a control and Load it as a UserControl





The Source Code for the above app can be downloaded from the below link
DynamcallyLoadingXAP_SL4.rar

Hope you enjoy it.

Do suggest your feedback so that I can Improve.
Thanks!!

Feb 3, 2011

What Silverlight is, How it helps Business Applications(Very Quick Go through)

Silverlight is a cross platform/cross browser RIA(Rich Internet Application) technology.

SL is one of the Microsoft's coolest technology to make web application development Faster.

As I am .NET C sharp Programmer, I feel WPF & Silverlight is something which has very special reusability feature of Coding the similar GUI which can be used over WebApplication as well as Desktop application. (Sounds gr8 hmm... but ofcourse not as easy as it sounds ofcourse we knew the difference between web/desktop based apps.)

That Reusable code is something which is called as "XAML" (eXtensible Applicaiton Markup Language), which is a special format similar to XML format but with Microsoft's predefined schema.

Using SL one can very Rapidly code Web Based Business Application(There are lots more features but I feel to stick with business Apps more)

A crucial point, If we need to convert an Existing Desktop ERP consuming WebService/n-Tier Architecture to a Web Based Application then its always recommended by me to Use Silverlight (4/5) as a technology.

People Generally, compare Flash/Silverlight/Flex/JavaFx.. but I dont feel any such great point of comparison when it comes to a talk for developing Business Apps. As there are Rich Features like Printing, Interoperability with MS Office, NESL(Native Extension for Silverlight), Portable WebService(WCF RIA Services), Entity Data Model, Consumes Client memory Runs over client Side, Fast, Secure, OutOfBrowser Feature, trusted application, Charting, Reporting, ofcourse GUI/Animation with Smooth Interactivity.

I have very rapidly gone with above description from my mind for Silverlight 4, For exploring/elaborating more please refer to few official Sites of Silverlight:
Getting Started Silverlight
Silverlight 4
Silverlight Videos
Microsoft's Silverlight

Feb 2, 2011

Hi to all pros.
From my Experience, I feel to start up writing my blogs,
Do follow, if you want to learn & Develop Rapidly any Web appllication OR Web Based Business Application (ERP), using Microsoft's Latest technologies.
I have my speciality over following topics:
Silverlight 4.0/5.0,
C Sharp,
WCF RIA Services,
.Net 4.0,
LINQ,
Share Point 2010,
Azure (Cloud Computing),
MS SQL Server,
Much more