I want to make a Silverlight application in Expression Blend because of the rich UI and navigation of Blend. But I want to store the Silverlight application in an ASP.NET MVC web project. When I try to make a new Silverlight application, the default web application is an ASP.NET Web application (or web site, if I'm wrong). Can I make a single Silverlight application (no web project) then import in an ASP.NET MVC application? How can I do this?
Yes, you can.
Code:
<object type="application/x-silverlight-2"
data="data:application/x-silverlight,"
width="100%" height="100%">
<param name="source" value="/ClientBin/MySlApp.xap"/>
<param name="onError" value="onSilverlightError" />
</object>
That's it...
Cheers