UIElement.TransformToVisual Method

July 28, 2014

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)

public GeneralTransform TransformToVisual(
	UIElement visual
)

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:
© 2014 Microsoft