programming4us
programming4us
WEBSITE

Silverlight JavaScript Reference

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
I_section_d1e9114.html

Using the Silverlight Plug-in

There are two ways to access the Silverlight plug-in. Use the HTML DOM and the document.getElementById() method, and provide the ID used in the createSilverlight() function. Or intercept any Silverlight event and access the plug-in in the following fashion:

function eventHandler(sender, eventArgs) {
var plugin = sender.getHost();
}

From the plug-in, you have access to the following properties and methods:

content.accessibility

Accessibility information of the Silverlight content (read-only).

content.actualHeight

The height of the Silverlight content (read-only).

content.actualWidth

The width of the Silverlight content (read-only).

content.createFromXaml(xamlContent, nameScope)

Creates a Silverlight object with the given XAML content; if nameScope is set to true, a unique x:Name attribute is assigned.

content.createFromXamlDownloader(downloader, part)

Creates a Silverlight object from the given downloader object; if the downloaded content is a ZIP archive, part defines the name of the file to use.

content.findName(objectName)

Returns a reference to the object with the given name.

content.fullScreen

Whether the Silverlight plug-in is in full-screen mode (read and write).

content.onFullScreenChange

Event handler that is fired when the application enters or leaves full-screen mode.

content.onResize

Event handler that is fired if the Silverlight content area is resized.

createObject(objectType)

Creates and returns an object with the given type.

initParams

The initialization parameters provided for the Silverlight content (read-only after the initialization).

isLoaded

Whether the Silverlight plug-in and its XAML content are fully loaded (read-only).

isVersionSupported(versionString)

Whether the current Silverlight plug-in supports content with the given version number.

onError

Event handler that is fired if an error occurs within the Silverlight application.

root

The root element of the Silverlight content (read-only).

settings.background

The background color of the Silverlight content area (read and write).

settings.enabledFramerateCounter

Whether the current frame rate is displayed in the browser's status bar (read and write; note that not all browsers allow you to change the content of the status bar).

settings.enableRedrawRegions

Whether the regions of the Silverlight content that are redrawn are highlighted (read and write; useful only during development).

settings.enableHtmlAccess

Whether to allow Silverlight content to access the HTML DOM (read-only).

settings.maxFrameRate

The maximum frame rate (number of frames) of the Silverlight content (read and write).

settings.windowless

Whether the Silverlight application runs in windowless mode (then the background may use alphatransparency and can let the background on the HTML page shine through), set in the initialization phase (read-only afterward).

source

The XAML source code of the Silverlight content (read and write).

Other  
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
REVIEW
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us
Celebrity Style, Fashion Trends, Beauty and Makeup Tips.
programming4us
 
 
programming4us