This is a migrated thread and some comments may be shown as answers.

Keyboard navigation with TreeView

3 Answers 132 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 15 May 2019, 02:36 AM

Does anyone have an example of implementing keyboard navigation within a TreeView with checkboxes for a Xamarin UWP app? It would be nice to be able use the up and down keys to move within the tree.

3 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 16 May 2019, 08:37 AM
Hello Mike,

The Xamarin.Forms.PlatformConfiguration.WindowsSpecific VisualElement AccessKey is a good option for achieving this scenario. However it is available for the Xamarin.Forms controls. 

Regarding this we have a feature request logged in our Feedback portal. You could follow and vote for the item on the link below:

https://feedback.telerik.com/xamarin/1408991-common-uwp-add-support-for-windows-accesskey

The Xamarin.Forms Windows AccessKey feature could be used directly with Telerik UI for Xamarin controls which inherits from the Xamarin.Forsm controls. The RadButton control is such a control. It inherits from the Xamarin.Forms Button. 

Solution for using the Windows AccessKey:

In order to focus the RadTreeView control you can create a custom control for example MyTeeView that inherits from the RadTreeView and implement the IElementConfiguration.

I have attached a sample project regarding this implementation. Please download the file and take a look at the MyTreeView.cs file.
 
I hope I was helpful. 

Regards,
Didi
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mike
Top achievements
Rank 1
answered on 16 May 2019, 11:22 AM
Thank you. I will take a look.
0
Mike
Top achievements
Rank 1
answered on 16 May 2019, 04:06 PM
I reviewed your example app and now understanding what you were suggesting. Thank you for the suggestion but in this case I wasn't trying to give focus to the TreeView but when the TreeView already has focus I wanted to be able use arrows within the TreeView to move between items in the treeview, and then use a key like the spacebar to check/uncheck items within the list (which this part already seems to work once an item is selected). I do thank you for your suggestion.
Tags
TreeView
Asked by
Mike
Top achievements
Rank 1
Answers by
Didi
Telerik team
Mike
Top achievements
Rank 1
Share this question
or