PopUp location and setting co-ordinates

May 27, 2011 at 8:46 PM

I have a grid and some rows, a cell (textblock) hoverover shows PopUp (as a tooltip). The problem is when the cell is the last row in the grid, at the bottom of the screen, then the popup is going pass the scree and getting cutt-off. Instead I want the popup should re-position to show full popup on the screen.

I am using IWindowManager.ShowPopUp method to show my view/model as tooltip.

Is there a way to re-position popup based on screen-widths?


Thank you