Windows Dev Center

UIElement.TransformToVisual Method

Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.

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

'Declaration
Public Function TransformToVisual ( _
	visual As UIElement _
) As GeneralTransform

Parameters

visual
Type: System.Windows.UIElement
The object to compare to the current object for purposes of obtaining the transform.

Return Value

Type: System.Windows.Media.GeneralTransform
The transform information as an object. Call GeneralTransform.Transform on this object to get a practical transform.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft