none
Popup position RRS feed

  • Question

  • I've created a Popup which its PlacementTarger is an element on the screen, and its Placement set to Bottom.

    If the element is near the bottom of the screen - the popup opens at the top of the control  - this is desired behavior , but is there way to "catch" this scenario (i mean to know when the popup opens at the top of the control, or at the bottom of it)?

    Thanks.
    Wednesday, September 24, 2008 2:41 PM

Answers

  • No, there is not. The best you can do is wait until it's been fully displayed and analyze screen coordinates of it and its placement target, comparing them to see the relative position.
    Controls for WPF and Windows Forms at http://www.divelements.co.uk
    • Marked as answer by Ohad Aston Thursday, September 25, 2008 7:41 AM
    Wednesday, September 24, 2008 3:49 PM

All replies

  • Someone? :)

    Wednesday, September 24, 2008 3:46 PM
  • No, there is not. The best you can do is wait until it's been fully displayed and analyze screen coordinates of it and its placement target, comparing them to see the relative position.
    Controls for WPF and Windows Forms at http://www.divelements.co.uk
    • Marked as answer by Ohad Aston Thursday, September 25, 2008 7:41 AM
    Wednesday, September 24, 2008 3:49 PM
  • Hmmm... This is very problematic.

    Thank you.

    Thursday, September 25, 2008 7:41 AM