Partager via


Root

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

value = silverlightObject.content.Root

Property Value

Type: UIElement

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

Managed Equivalent

None. Application.RootVisual is similar.

Remarks

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

References to the root object are useful when you want to add children to content.

You cannot use this property to reset the content root at run time. You must reset Source instead. However, note that resetting Source has performance consequences, because it requires reloading the plug-in as well as the content.

Applies To

Silverlight Plug-in