Get the coordinates of a rectangular rectangle FrameworkElement

How to get the upper left coordinates of a border element bounding a rectangle?

    let fe : FrameworkElement = ea.Item.Content 
    let p = fe.TranslatePoint(new Point(0.0, 0.0), null)

The previous code gives me: the field, constructor or member "Translator" is not defined. I am confused how MSDN shows this as a member of the FrameworkElement inherited from UIElement:

http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement_members(v=VS.100).aspx

+5
source share
1 answer

element.TranslatePoint(new Point(0.0, 0.0), null), element . , , null. ActualWidth ActualHeight .

+12

All Articles