title: how to get wpf button screen rectangle
body: <p>Hi I am trying to get the screen rectangle of a wpf button so that i can highlight it.</p>
  
  <p>I use this to achieve the same: </p>
  
  <p>AutomationPeer theBtnPeer = createPeerForElement(btn);
  Rect rect = theBtnPeer.GetBoundingScreenRectangle();</p>
  
  <p>This works fine and give me the right rectangle.</p>
  
  <p>However.. if the button is not currently visible then I invoke the BringIntoView() on this btn which successfully brings this button into view however when I call the GetBoundingSCreenRectangle() on it again . it gives me the same old value that was there before I invoked BringIntoView().</p>
  
  <p>How do I get the new bounding rectangle of this button?</p>
  
  <p>Thanks</p>