Root Property

Gets the object that is at the content root for the current Silverlight plug-in.

Scripting (Instantiation)
Not directly set during instantiation, but influenced by instantiation source value.
Scripting (Runtime)
value = silverlightObject.content.Root

Property Value

UIElement

This property is read-only. The default value is null.

Remarks

This property is available on the content sub-object of a Silverlight plug-in instance.

References to the root object are useful when you want to add children to content. The typical root element is a Canvas.

You cannot use this property to reset the content root. You must reset Source instead.

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)
Children
Source

Show: