Determines whether the Silverlight plug-in (Windows version) displays
as a window-less plug-in.
|
Scripting (Instantiation) | -or- |
|
Scripting (Runtime) | value = silverlightObject.settings.Windowless |
Property Value
Boolean
Gets (or sets in initialization only) whether the Silverlight plug-in
displays as a window-less or windowed plug-in.
This property is settable only as an initialization parameter, and is read-only for scripting thereafter. The default value is false.
Examples
The following JavaScript example demonstrates instantiation in which the
two Silverlight plug-ins are established through CreateSilverlight.js--the first one with the isWindowless initialization parameter set to false; the second, with isWindowless set to true:
|
JavaScript |
isWindowless:'false', // Display as windowed plug-in.
background:'#80008080', // Background color of plug-in (alpha + RGB).
|
|
JavaScript |
isWindowless:'true', // Display as window-less plug-in.
background:'#80008080', // Background color of plug-in (alpha + RGB).
|
Notice the displayed output of the preceding plug-in initializations. The
background of the first Silverlight plug-in is opaque. The background of the
second Silverlight plug-in is blended with the background image of the HTML page.
Windowless property set on two Silverlight plug-ins
The following illustration shows a TextBlock
displayed as a window-less plug-in on a Microsoft Virtual Earth mashup. The
Background value of the plug-in is "#00000000", which is totally
transparent. In addition, the Opacity of the TextBlock is set to 0.7, which allows the map underneath to partially show through the text.
TextBlock displayed as a window-less plug-in
Applies To
Silverlight Plug-in
See Also
Silverlight Object Models and Scripting to the Silverlight Plug-in
Instantiating a Silverlight Plug-in (Using CreateSilverlight.js and Silverlight.js)
Background