Hi, I am trying to get a wpf button screen rectangle so that I can select it.I use this to achieve the same:
AutomationPeer theBtnPeer = createPeerForElement (btn); Rect rect = theBtnPeer.GetBoundingScreenRectangle ();
This works great and gives me the correct rectangle.
However .. if the button is not currently visible, I call BringIntoView () on this btn, which successfully displays this button, however, when I find GetBoundingSCreenRectangle () again. it gives me the same old value that was there before I called BringIntoView ().
How to get the new bounding box of this button?
thank
Rahul source
share