Posted 16 years ago
by David Mullin

I'm using a PopupButton on a window - when I close the popup (either by clicking an "Ok" button on the popup, or by clicking off of the popup), something strange happens to the mouse capture. If I then mouse over another window in my application, it leaps to the front. If I mouse over something that does Drag & Drop, that ends up happening.
I don't know if I can make a simple reproduction, but if you need one, I can try.
Also (but presumably unrelated to this), how is the best way to programatically close the popup? I was originally just setting the IsPopupOpen property to false, but I see that there is a ClosePopup command. However, when I call ClosePopup.Execute(null, this), nothing happens. Am I calling it wrong, or is it that I need to have a CanExecute handler?
[Modified at 04/21/2009 02:01 PM]
I don't know if I can make a simple reproduction, but if you need one, I can try.
Also (but presumably unrelated to this), how is the best way to programatically close the popup? I was originally just setting the IsPopupOpen property to false, but I see that there is a ClosePopup command. However, when I call ClosePopup.Execute(null, this), nothing happens. Am I calling it wrong, or is it that I need to have a CanExecute handler?
[Modified at 04/21/2009 02:01 PM]