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

Namespace:  C1.Phone
Assembly:  C1.Phone (in C1.Phone.dll)

Syntax

C#
public static GeneralTransform C1TransformToVisual(
	this UIElement element,
	UIElement visual
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function C1TransformToVisual ( _
	element As UIElement, _
	visual As UIElement _
) As GeneralTransform

Parameters

element
Type: System.Windows..::..UIElement
The UIElement that defines the source coordinates.
visual
Type: System.Windows..::..UIElement
The UIElement that defines the target coordinates.

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UIElement. 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).

Remarks

This is an improved version of UIElement.TransformToVisual. It works in cases that TransformToVisual doesn't, like with UIElements inside Popups.

See Also