Note that there are some explanatory texts on larger screens.

plurals
  1. POTabItem - show popup on hover
    primarykey
    data
    text
    <p>I have a TabControl with multiple TabItems, with each TabItem containing multiple sections in the content area. When the user hovers over any Tab, I'd like to show a Popup that shows a list of the sections in that Tab and allow the user to click on the section and navigate to it.</p> <p>For this question, the portion that I need help with is the closing/opening of the Popups as the user hovers over each Tab. The main sticking points are:</p> <ol> <li>Allowing the user to move the cursor into the Popup area from the Tab. Once the Popup has been opened, it refuses to close on TabItem MouseLeave.</li> <li>If the user moves from Tab to Tab, the Popup from the previous Tab should close and a new one should open.</li> <li>The user should only need one click to navigate. This means they shouldn't have to "click away" the popup from one tab in order for another popup to show.</li> </ol> <p>My thought is to expose a DependencyProperty that hit tests which Tab the mouse is over, and trigger the Popup off of that. </p> <p>Edited for clarity: When moving the mouse over a tab, I show a popup. When I move the mouse away from the Tab, I want the Popup to go close. It has to be a Popup (and not a Tooltip), because the user has to be able to click on the content inside the Popup. </p> <p>I've sub-classed and re-templated the TabControl, but I would like some help with how to close the Popup on the MouseLeave event. I've triggered on the MouseLeave event, but when the Popup opens, the focus shifts to the Popup so the TabItem MouseLeave event isn't fired properly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload