Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.
Namespace:
C1.XamlAssembly: C1.Xaml (in C1.Xaml.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: UIElement
The UIElement that defines the source coordinates.
- visual
- Type: 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.
Remarks
This is an improved version of UIElement.TransformToVisual. It works in cases that TransformToVisual doesn't, like with UIElements inside Popups.