Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VisualTreeHelper.GetRoot Method

Silverlight

Returns an object's root object in the visual tree.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public static DependencyObject GetRoot(
	DependencyObject reference
)

Parameters

reference
Type: System.Windows.DependencyObject
The object to get the root object for.

Return Value

Type: System.Windows.DependencyObject
The root object of the reference object in the visual tree.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.