I have a popup which contains multiple elements, a list view, a text box and a button. These are operating fine, and if you use the button to close the popup it works as well, but when i tried to make the popup close when it lost focus, it closed when i clicked an element in the listview. Is there any way around this? Is the FocusManager property the way to go?
You should just set the StaysOpen property on your popup like this:
http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.popup.staysopen.aspx