Visual.TransformToAncestor Method (Visual3D)
Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- ancestor
-
Type:
System.Windows.Media.Media3D.Visual3D
The Visual3D to which the coordinates are transformed.
Return Value
Type: System.Windows.Media.Media3D.GeneralTransform2DTo3DA transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.
.NET Framework
Available since 3.0
Available since 3.0