how Winrt – Adjusting flyout according to where it appears



I have a GridView in a windows store project, that contains some big squares, and inside those i have a list of user images, when i tap on of those images a flyout appears on the right showing some information like this.

enter image description here

the problem is that my gridview extends to the edges of the screen and beyond, and when that does i get this situation, i press the user with the red border near the edge of the screen and flyout appears on left.

enter image description here

My flyout placement is set to Right, and im guessing since the element i press is near the edge it follows the Fall back order with according to this is Right > Left > Top > Bottom.

What i would like to know is how to detect this happens, so i can adjust my flyout position, or another viable alternative 🙂






Facebook Comments

Post a comment