Share via


MouseGestureData.TranslatePoint Method

Translates the specified point to the coordinate system of the visual for the specified model.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Function TranslatePoint ( _
    pt As Point, _
    referenceTo As ModelItem _
) As Point
public Point TranslatePoint(
    Point pt,
    ModelItem referenceTo
)
public:
Point TranslatePoint(
    Point pt, 
    ModelItem^ referenceTo
)
member TranslatePoint : 
        pt:Point * 
        referenceTo:ModelItem -> Point 
public function TranslatePoint(
    pt : Point, 
    referenceTo : ModelItem
) : Point

Parameters

Return Value

Type: System.Windows.Point
A Point object that represents the translated point.

Exceptions

Exception Condition
ArgumentNullException

referenceTo is nulla null reference (Nothing in Visual Basic).

Remarks

The visual must be a child of the designer decorator.

.NET Framework Security

See Also

Reference

MouseGestureData Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility