shared/PopupButton won't go away

Ribbon for WPF Forum

Posted 3 years ago by John Lutz
Version: 16.1.0633
Avatar

I have a shared PopupButton with a ListBox as the content.   If I <Alt-Tab> to another app while the content is popped up, it doesn't close and shows on top of the other app.   Is there any way you can make it close when the app loses focus?  I've spyed the events and wasn't seeing anything I could use to detect this scenario.

Comments (1)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi John,

That scenario shouldn't happen if you have the StaysOpen feature off.  When that feature is off (the default), the popup will hide when focus moves elewhere.  Otherwise, you'd have to watch for your Window to lose activation to another app and manually set IsPopupOpen to false since I believe WPF opens Popups as topmost windows.

This thread has some help on how to watch for app deactivation:

https://social.msdn.microsoft.com/Forums/en-US/81a5be4d-ef17-473b-a67c-23dad749fe24/is-there-a-way-to-find-that-application-is-activated-or-active-in-wpf-wmactivateapp?forum=wpf


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.