.NET Framework Class Library for Silverlight
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)
Syntax
Visual Basic (Declaration)
Public Function TransformToVisual ( _ visual As UIElement _ ) As GeneralTransform
C#
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.GeneralTransformThe transform information as an object. Call GeneralTransform.Transform on this object to get a practical transform.
Remarks
In WPF, this method exists on the Visual class. Silverlight does not use Visual in its public object model. Silverlight implements several Visual-related APIs on the UIElement class instead.
Version Information
Silverlight
Supported in: 5, 4, 3Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also