Click or drag to resize
DigitalRuneUIHelperGetRoot Method
Returns the root control of the visual tree.

Namespace: DigitalRune.Game.UI
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public static UIControl GetRoot(
	this UIControl control
)

Parameters

control
Type: DigitalRune.Game.UI.ControlsUIControl
The control where to start the search.

Return Value

Type: UIControl
The root control.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UIControl. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncontrol is .
See Also