Is there any way to stop a WPF Popup from repositioning itself when it goes off-screen?

后端 未结 5 1780
孤独总比滥情好
孤独总比滥情好 2021-01-04 10:33

Is there any way to stop a WPF Popup from repositioning itself when it goes off-screen?

I found this old question, but it didn\'t get a proper answer to it. Is there

5条回答
  •  情话喂你
    2021-01-04 10:48

    You can use PrecisePopup control from my opensource JungleControls library. It will position the popup exactly as specified even if that means the popup is partially off-screen.

    It can automatically select the most suitable placement from among the placements you define, but if you just need one exact popup placement that corresponds to "Bottom" placement of the built-in Popup, you can do it like this:

    
        
            
        
        
    
    

提交回复
热议问题