Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9252913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:04:48+00:00 2026-06-18T11:04:48+00:00

I have a TabControl with multiple TabItems, with each TabItem containing multiple sections in

  • 0

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.

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:

  1. 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.
  2. If the user moves from Tab to Tab, the Popup from the previous Tab should close and a new one should open.
  3. 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.

My thought is to expose a DependencyProperty that hit tests which Tab the mouse is over, and trigger the Popup off of that.

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.

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:04:49+00:00Added an answer on June 18, 2026 at 11:04 am

    You can use the Interaction.Triggers from the Blend SDK to trigger the popup to close whenever the mouse leaves the popup. Here is a short example:

    <Popup Height="300" x:Name="MyPopup">
            <Label Content="MyLabel"></Label>
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeave">
                    <ei:ChangePropertyAction TargetObject="{Binding ElementName=MyPopup}" PropertyName="IsOpen" Value="False"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
    </Popup>
    

    You’ll need the following namespaces:

    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"                  
    xmlns:ei="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TabControl with multiple TabItems. In each TabItem there needs to be
I have a tabControl control with multiple tabs. For each tab, I am adding
I have a tab control in my WPF application with multiple tabs. Each tab
I have a main form with a tab control containing multiple subforms. I need
I have a TabControl where each TabItem shows a ListView . The list is
I have multiple TabItems in my TabControl; tabItem1, tabItem2, tabItem3...these are CloseableTabItem. If I
I have multiple TabItems in my TabControl ; tabItem1 , tabItem2 , tabItem3 ...these
I have a TabControl and users controls are in TabItem content like that: \\...
I have a TabControl that can contain a TabControl in each TabItem. There is
I have a WPF application with multiple TabItems within a TabControl. In one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.