Friday, February 25, 2011

Complete Tutorial: Host WordPress on Windows and host Silverlight on WordPress (Part 2 of 2)

 

Part 1

Set up Silverlight Plug-in for WordPress

  1. Download Silverlight WordPress plug-in from here.
  2. Extract the silverlight.php file in this package to your WordPress wp-content\plugins folder.
  3. Go to http://localhost:81/wordpress/wp-admin. Log in as administrator. Then click on “Plugins” link to the left.
  4. You should see “Sliverlight for WorPress” listed as one of the plugins. Click on “Activate” link below it:image

Create Hello World! Silverlight Application

  1. Create a new Silverlight Application, and let’s name it SilverWordPress. You don’t need to create a web host because we are hosting the application on WordPress (it doesn’t hurt to create one either).
  2. Add something simple such as a TextBlock showing “Hello World”:
  3. <TextBlock FontSize="60" VerticalAlignment="Center" HorizontalAlignment="Center">Hello World!</TextBlock>
  4. Compile the solution. What we need is the SilverWordPress.xap file, which will be under your project’s Bin\Debug folder by default.

Hosting Silverlight Application on WordPress

  1. Copy the XAP file you’ve got to your WordPress root folder. This is the default location where the plug-in looks for the file. You can change this location in plug-in settings.
  2. Edit any page in HTML view and add tag:
  3. [silverlight: SilverWordPress.xap]
  4. Save the page and load it up! image
  5. The plug-in support additional parameters to adjust application size and initialization parameters – read its readme.txt for details.

1 comments:

  1. Well excellent tutorial you have shared here about this concept and i got god information here.web hosting provider

    ReplyDelete