I have created a TreeViewComboBox control, in this I am having a ComboBox with items as TreeView, but Keyboard Navigation doesn’t work on the TreeView. I am not able to navigate through the TreeViewItems using keyboard. Any help plz?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I has a similar issue when implementing our property grid control. The issue in our specific, which could be similar to yours, was that the keyboard focus events were not routing to the
TreeViewItem.The way we solved it was by adding an AttachedProperty to the TreeViewItem style and selecting the node when it gets keyboard focus. I implemented this using a Service pattern. See below:
In XAML:
In Codebehind:
HTH,