UIElement..::.TransformToVisual Method
This page is specific to:Microsoft Version:Silverlight 3
.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

'Usage

Dim instance As UIElement
Dim visual As UIElement
Dim returnValue As GeneralTransform

returnValue = instance.TransformToVisual(visual)

'Declaration

Public Function TransformToVisual ( _
    visual As UIElement _
) As GeneralTransform

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.
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.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View