title: How to anchor a WPF Popup to a Control?
body: <p>I have decided to use templated PopUps to display validation errors for my controls, rather than ToolTips (seem to offer greater flexibility in terms of styling). <strong>I am looking for a clean way to ensure that the PopUps are anchored to the control they are referring to so when the window is moved they are moved with them</strong>... </p>
  
  <p>One thought i had was to traverse the visual tree and manually set all PopUps IsOpen property to false...this seems like a bit of a "hack". It is less than ideal as it will presumably flicker among other things...Having said this a lot of the solutions i have seen so far on stackoverflow also seem to have their pitfalls. Ideas?</p>