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 8713581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:22:33+00:00 2026-06-13T05:22:33+00:00

I have a WPF Popup that has several controls in it. The user can

  • 0

I have a WPF Popup that has several controls in it. The user can tab through the controls just fine. But when the last control is reached, then tab will move the focus back to the first control in the Popup.

Rather than cycle back to the start, I would like the Popup to close and have focus move to then next control in the Popup’s parent.

I have seen the KeyboardNavigation.TabNavigation options, but no matter what I set them to, the focus always cycles (or tabbing is disabled).

Is there a way to get an OnCycle event so I can manually close the Popup?

  • 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-13T05:22:34+00:00Added an answer on June 13, 2026 at 5:22 am

    There is no event that tells you when the focus has cycled back around. You could add a handler for PreviewGotKeyboardFocus event on the first control and close the Popup if the last control currently has keyboard focus. But this would also close the popup if the user explicitly clicked from the last control to the first.

    I would probably put an invisible control just after your last control in the tab order. So when the user tabs from the last control, the invisible control would get focus and you would know to close the popup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF form that has some buttons to save user input, delete,
I have a simple WPF Popup that I am showing when the user clicks
I have a WPF application that has user validation. This is rendered in the
I have WPF Application where I have One main form and other user controls
I have a WPF (C# and .NET 4) application that has a long running
I have a C# WPF .NET 4 application that has an icon in the
I have a wpf datagrid that has it's columns generated dynamically in code and
I’m having issues with a WPF Expander that I have in a user control
I have a Popup control that I added a thumb to so I can
I have a Popup control in WPF that loades it's content dynamically and each

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.