IRootObjectProvider.RootObject Property

 

Gets the root object from markup or from an object graph.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

object RootObject { get; }

Property Value

Type: System.Object

The root object.

The root object in a XAML markup scenario might be useful for markup extension scenarios because of attributes that might by convention be set at the root level of XAML markup. Specific root object capabilities might be specified by frameworks. For example, certain attributes might only be valid at the root level, or a framework might support inheritance of global properties from the root.

.NET Framework
Available since 4.0
Silverlight
Available since 5.0
Return to top
Show: