I have a WPF Popup that has several controls in it. The user can tab through the controls just fine. But when the last control is reached, then tab will move the focus back to the first control in the Popup.
Rather than cycle back to the start, I would like the Popup to close and have focus move to then next control in the Popup's parent.
I have seen the KeyboardNavigation.TabNavigation options, but no matter what I set them to, the focus always cycles (or tabbing is disabled).
Is there a way to get an OnCycle event so I can manually close the Popup?