Summary of the param parameter list in Silverlight 3

Source: Internet
Author: User
I am writing this article Article Previously, Microsoft just released Silverlight 4 on its official site. Interested friends can download it from Microsoft official site. Like in previous versions, Silverlight is embedded into a webpage as a browser plug-in for running and exists in html as an object tag. We can pass page parameters to Silverlight through the param tag, in general, we can tell Silverlight the address of the xap package to be loaded, and the parameters to be used during Silverlight initialization, such:

< Object Data = "Data: Application/X-Silverlight ," Type = "Application/x-silverlight-2" Width = "100%" Height = "100%" >
< Param Name = "Source" Value = "Clientbin/video_presentations.xap" />
< Param Name = "Onerror" Value = "Onsilverlighterror"   />
< Param Name = "Background" Value = "Transparent"   />
< Param Name = "Windowless" Value = "True"   />
< Param Name = "Minruntimeversion" Value = "3.0.40624.0"   />
< Param Name = "Autoupgrade" Value = "True"   />
< A Href = "Http://go.microsoft.com/fwlink? Linkid = 149156 & V = 3.0.40624.0" Style = "Text-Decoration: none ;" >
< IMG SRC = "Http://go.microsoft.com/fwlink? Linkid = 108181" ALT = "Get Microsoft Silverlight" Style = "Border-style: none" />
</ A >
</ Object >

But we can also pass more useful content to Silverlight through Param. Through msdn, we can see all references of Silverlight plug-in object:

The following table lists almost all parameters that may be used:

Parameters Description Type
Allowhtmlpopupwindow Indicates whether the content carried by the Silverlight plug-in can be usedHtmlpage. popupwindow Method to display the new browser window. For applications in the same domainProgramThe default value is true. For cross-Origin applications, the default value is false. Boolean
Autoupgrade Indicates whether the Silverlight plug-in version earlier than minruntimeversion will attempt to be automatically updated. The default value is true. Boolean
Background The Default background color of the region where the Silverlight plug-in is located. This value is white by default. Color with or without alpha (RGB, scrgb)
Enableautozoom Indicates whether the host (for certain platforms) can call the scaling action to increase DPI. The default value is true. Boolean
Enablecachevisualization

Indicates whether to use the non-production analysis visualization mode to display the GPU acceleration section using color coverage on the page. This parameter is usually used in debugging. Do not use this parameter in released versions. The default value is false.

Boolean
Enableframeratecounter Indicates whether to display the current frame rate in the status bar of the current browser (only in Microsoft Internet Explorer on Microsoft Windows OS ). Boolean
Enablegpuacceleration Indicates whether to use GPU hardware acceleration for cache merging, which improves graphics. The default value is false. (Note that this attribute is not applicable to windowless mode, that is, it is invalid to set this value to true when windowless = true) Boolean
Enablehtmlaccess Indicates whether the Silverlight plug-in has the right to access the DOM elements (Document Object Model) in the current browser ). For applications in the same domain, the default value is true; for cross-domain applications, the default value is false. Boolean
Enablenavigation Indicates whether the content carried by the Silverlight plug-in can be navigated to an external URI using hyperlinkbutton. The default value is all.

ALL: You can use hyperlinkbutton to navigate to any Uri.

None: the content to be hosted cannot be navigated to an external URI using hyperlinkbutton, but the relative URI for internal navigation is still allowed.

Enableredrawregions Determine whether to display the plug-in areas that are re-painted with each frame. This attribute is only used for performance optimization and visualization during deployment. do not specify it in any deployed Silverlight application. The default value is false. Boolean
Fullscreen Indicates whether the Silverlight plug-in is displayed in full screen mode. The default value is false. Boolean
Getsystemglyphtypefaces Returns the glytypefacecollection of fonts installed on your computer. Glytypefacecollection
Initparams The list of custom initialization parameters. Key-value pairs separated by commas.
Isloaded Whether all initial content is loaded. The default value is false. Boolean
Maxframerate The number of frames that Silverlight can render per second. The default value is 60. Note that reducing this value may make the Silverlight animation look less fluent, but it also increases the efficiency of parallel execution between the Silverlight animation and JavaScript animation. Integer
Minruntimeversion Indicates the minimum version number required to run a Silverlight-based application. Version Number
Onerror Specify to generate a local machine in the Silverlight plug-inCodeName of the handler to be debugged when a level of XAML analysis error or runtime error occurs. JavaScript function name
Onfullscreenchanged Specifies the processing program for the fullscreenchanged event. This event is triggered when the fullscreen attribute of the Silverlight plug-in is changed. JavaScript function name
Onload Specifies the loaded event handler. This event is triggered when the Silverlight plug-in has been loaded to the browser Dom. JavaScript function name
Onresize Specifies the handler for the resized event. This event is triggered when the object tag size of the Silverlight plug-in is adjusted and the actualheight or activewidth of the Silverlight plug-in is changed. JavaScript function name
Onsourcedownloadcomplete Specifies the name of the event handler called when the source download is completed. JavaScript function name
Onsourcedownloadprogresschanged Specifies the name of the event handler called when the source download progress is changed. JavaScript function name
Onzoom

Specifies the event handler when the Silverlight plug-in area is scaled by the Host Program.

JavaScript function name
Source The address of the xap package used to load and run the Silverlight plug-in. Uri
Splashscreensource Specifies the initial screen when the Silverlight plug-in is loaded. Uri
windowless indicates whether the Silverlight plug-in is displayed in windowless mode. The default value is false. Boolean

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.