title: How do i find location of a wpf element in a window
body: <p>I need to be able to find the location of a WPF element on an application window so i can then draw a rectangle around the specific element on a screenshot/image capture of the window containing this element.</p>
  
  <p>This is for a VS Coded UI Framework i am developing that has window captures or element capture to an image when an error occurs. I want to combine these two and have a window capture that shows a red rectangle around the element in error.  </p>
  
  <p>Alot of forums have answers around this, but they refer to <strong>TranslatePoint</strong>. I cannot see this when working with Visual Studio and Microsofts UITesting Coded UI WpfControls. Anyone know how to get around this??</p>