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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:24:57+00:00 2026-06-13T02:24:57+00:00

I have an application that uses treeview in wpf with mvvm. The treeitem template

  • 0

I have an application that uses treeview in wpf with mvvm. The treeitem template contains a textbox for the user to enter or change field data. I would like if the user presses tabwhile editing if it would move to the next visible treeitem textbox and allow them to start editing that. Is this possible? I can catch the tab key but can’t figure out how to move to the next item

  • 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-13T02:24:58+00:00Added an answer on June 13, 2026 at 2:24 am

    Ok I’m not sure it’s the cleanest way but I found a way to do it and it doesn’t seem to be suffering from speed issues so it works for now, still would be interested in a cleaner answer if anyone has one. Here is what I did:

    I used a method similar to the one referenced here to get a collection of all the textboxes in the TreeView. I then used ‘sender’ for the KeyDown event, cast to a textbox, and got it’s datacontext which is my view model for that node. I then used my overall viewmodel to find the view model of the next visible node (very easy with a two way binding to ‘IsExpanded’). Last, I iterated over all of the textboxes found at the start until I found one who’s datacontext was the next visible view model and called Keyboard.Focus(myTextBox) on it.

    Like I said, it seems like there should be a cleaner way but it works for now…

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

Sidebar

Related Questions

I have an application that uses multiple user models, each with its own devise
My .NET 4 application uses the WPF TreeView which I have enhanced to enable
I have an application that uses the navigation-based application template in XCode. Now I
I have an application that uses a template file and a CSV file. It
I have an application that uses a ResourceDictionary to set the styles, which it
I have an application that uses Hibernate. It generated the following SQL statement. I
I have an application that uses multiple WebViews. Nowhere do I set the priority
I have an application that uses RPC for interprocess communications. Turns out that synchronous
I have an application that uses rest to communicate to a server, i would
I have an application that uses CoreData. I previously had a class named Marker

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.