Hi, I've got a UserControl called myListItem that goes into ListBox'es. On mouse-over, it displays a pop-up window, and in that pop-up there's a scroll-view that the user might want to use to scroll the text in the view. I've made an event-handler that displays the pop-up when the mouse enters, but I'm struggeling a bit with when the mouse leaves. If the mouse leaves to the pop-up, the pop-up should stay up, but when the mouse leaves any other way, the pop-up should be disabled. Do you have any suggestions on how to solve this? I'd think there would be a way looking a bit like this:
void MouseLeave(object sender, MouseEventArgs e) {
if(!e.Position.Intersects(itemPopUp.BoundingBox))
itemPopUp.IsOpen = false;
}
Cheers
Nik