Requirements: Visual Studio 2008 and ASP.NET Futures Release
In Visual Studio 2008 it will be very easy to create Silverlight enabled applications. Here's a quick "How-To"...
Open Visual Studio 2008 with ASP.NET Futures Release installed... Select FILE NEW WEBSITE from the menu, it will bring you an options menu that shows projects that look like this...
You can then select the version of the .NET Runtime you want to use, in this case we will target version 3.5 which corresponds to requirements of the ASP.NET futures release.. For this project we will not select the AJAX version of the project.
Your Visual Studio Project will be created and you will see the project files in the Solution Explorer window..
Double click on the default.aspx page to open that file in the design surface..
then from the toolbox drag and drop the XAML control onto the design surface.. It will open a design wizard...
Now let's add our xaml files to the ASP.NET page.. right click on the solution explorer on the project icon and select add existing files..
and select add existing files from the pop up menu to add your XAML files to the project...
Next we are going back to XAML control properties and tell it where the XAML files are in our project... So if you look at the properties window with the XAML1 control selected on the page, it will look like this...
Enter the name of the XAML file and path to it from with the XAMLUrl property
Now you have just added a XAML file to your ASP.NET page..
Now hit Build Web Site from the BUILD menu
and you will have a webpage with XAML added to it..
It's that simple with ASP.NET
To add Silverlight Video it's just as easy...
Add the .wmv file to your project if it is local through the same method as above from the Solution Explorer by right clicking and selecting Add Existing Item..
Drag and drop the MEDIA control icon from the tool box onto the designer surface of the page...
from the pop-up menu Common Media Tasks enter the URL to the media file ( if it's on a server this could be a URL to a media Server) or in this case Butterfly.wmv for our local sample file..
You can also select the skin for the player from a number of default styles (or create your own), by selecting Configure skin..
And that's a tour of adding video and XAML to your website in ASP.NET and Visual Studio 2008 with .NET 3.5..