I have a PopUp Window, which contains ListBox. In ListBox PreviewMouseUp event, I get the selected item from ListBox and close the PopUp. However, even the ScrollBar of the ListBox sends these PreviewMouseUp events, so I am not able to scroll the list without getting the PopUp closed..
How can I separate the click of an item in the list from a click of the ScrollBar?