Software & Finance





Visual Studio.NET - SilverLight Application - XAP File





xap stands for the silverlight based application package. It is actually a. zip file containing the appmanifest.xaml file and the app.dll.

 

The bottom line is one .xap file good enough in your HTML and ASPX page to deploy the silverlight control.

 

 

<form id="form1" runat="server" style="height:100%">

    <div id="silverlightControlHost">

        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">

            <param name="source" value="Silverlight_SimpleArithmetic.xap"/>

            <param name="minRuntimeVersion" value="3.0.40818.0" />

            <param name="autoUpgrade" value="true" />           

        </object>

    </div>

</form>

 

 

The manifest information in .xap file will have the following similar content:

 

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"

 

      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       EntryPointAssembly="Silverlight_SimpleArithmetic"       EntryPointType="Silverlight_SimpleArithmetic.App"     RuntimeVersion="3.0.40818.0">

 

    <Deployment.Parts>

 

        <AssemblyPart x:Name="Silverlight_SimpleArithmetic"                  

            Source="Silverlight_SimpleArithmetic.dll" />

 

    </Deployment.Parts>

 

</Deployment>