Param parameters in Silverlight

Source: Internet
Author: User

Objects commonly embedded with Silverlight Components

<Object Data = "data: Application/X-Silverlight," type = "application/x-silverlight-2" width = "100%" Height = "100%">
<Param name = "Source" value = "clientbin/video_presentations.xap"/> // source file
<Param name = "onerror" value = "onsilverlighterror"/> // error handling function
<Param name = "background" value = "Transparent"/> // background
<Param name = "minruntimeversion" value = "4.0.50826.0"/> // run the lowest version
<Param name = "autoupgrade" value = "true"/> // whether to update automatically
<A href = "http://go.microsoft.com/fwlink? Linkid = 149156 & V = 3.0.40624.0 "style =" text-Decoration: none; ">

</A>
</Object>
Through msdn, we can see all references of Silverlight plug-in object:
Http://msdn.microsoft.com/zh-cn/bb412366
The following table lists almost all parameters that may be used:

[Parameter] ------------------------- [description] ---------------------------------- [type]
AllowhtmlpopupwindowIndicates whether the content carried by the Silverlight plug-in can be displayed using the htmlpage. popupwindow method. For applications in the same domain, the default value is true; for cross-domain applications, the default value is false. Boolean

AutoupgradeIndicates whether the Silverlight plug-in version earlier than minruntimeversion will attempt to be automatically updated. The default value is true. Boolean

BackgroundThe 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)

EnableautozoomIndicates whether the host (for certain platforms) can call the scaling action to increase DPI. The default value is true. Boolean

EnablecachevisualizationIndicates 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

EnableframeratecounterIndicates 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

EnablegpuaccelerationIndicates 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, setting this value to true is invalid when windowless = true) Boolean

EnablehtmlaccessIndicates 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

EnablenavigationIndicates 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.

EnableredrawregionsDetermine 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

FullscreenIndicates whether the Silverlight plug-in is displayed in full screen mode. The default value is false. Boolean

GetsystemglyphtypefacesReturns the glytypefacecollection of fonts installed on your computer. Glytypefacecollection

InitparamsThe list of custom initialization parameters. Key-value pairs separated by commas.

IsloadedWhether all initial content is loaded. The default value is false. Boolean

MaxframerateThe 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

MinruntimeversionIndicates the minimum version number required to run a Silverlight-based application. Version Number

OnerrorSpecifies the name of the handler to be debugged when the Silverlight plug-in generates a native code-level XAML analysis error or runtime error. JavaScript function name

OnfullscreenchangedSpecifies 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

OnloadSpecifies the loaded event handler. This event is triggered when the Silverlight plug-in has been loaded to the browser Dom. JavaScript function name

OnresizeSpecifies 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
OnsourcedownloadcompleteSpecifies the name of the event handler called when the source download is completed. JavaScript function name

OnsourcedownloadprogresschangedSpecifies the name of the event handler called when the source download progress is changed. JavaScript function name

OnzoomSpecifies the event handler when the Silverlight plug-in area is scaled by the Host Program. JavaScript function name

SourceThe address of the xap package used to load and run the Silverlight plug-in. Uri

SplashscreensourceSpecifies the initial screen when the Silverlight plug-in is loaded. Uri

WindowlessIndicates 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.