tags:

views:

189

answers:

1
+1  A: 

You need to define an explicit focus scope by setting the FocusManager.IsFocusScope property on the Popup:

<Popup FocusManager.IsFocusScope="true">
  <!-- your content here -->
</Popup>

This will keep the focus from moving back out to controls within the containing element.

Drew Marsh
KeyboardNavigation.TabNavigation="Cycle" does nothing.
csuporj
Sorry, you're right, it's about focus scope. Tested it, it works, revised my answer.
Drew Marsh
FYI, when I tested it, I had left your code-behind exactly as you supplied it (with the explict call to Focus the list box). Realizing this, I went back and removed it and the focus still jumps out of the Popup which is very strange. For now at least it will keep you from having to use a timer to delay setting the focus.
Drew Marsh