Featured Post

Web API Requests Series

Web API Series:  Create and Retrieve , Update and Delete , Retrieve Multiple , Associate/Disassociate , Impersonation , Run Workflows

12 August 2011

How to open a Silverlight application from the ribbon menu

In this post I am going to show you how to open a Silverlight application by clicking a custom ribbon button.

Steps:
  1. Create a new ribbon button
  2. Create the Silverlight application
  3. Create the XAP web resource
  4. Create a HTML web resource for the page that  hosts the Silverlight app
First of all let's create a new custom button, see this post.
Create your Silverlight application, if you want to use the REST endpoint see this post.
Create a Silverlight web resource and the HTML web resource.

Follow this guidelines when naming the web resources:

  1. HTML Web resource name = /MyApplicationName.html, this will result,after saving, in    customizationprefix_/MyApplicationName.html.
  2. HTML Web resource display name = MyApplicationName.html.
  3. XAP Web resource name = /ClientBin/MyApplicationName.xap, this will result,after saving, in                customizationprefix_/ClientBin/MyApplicationName.xap.
  4. XAP Web resource display name = MyApplicationName.xap.
Enjoy!


No comments:

Post a Comment