Tab doesn't work correctly with CollectionView on Windows platform #16437
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
area-keyboard
Keyboard, soft keyboard
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Tab will typically cycle through various text entry controls, but this appears to be broken when placing multiple controls in a CollectionView. Referring to the sample XAML below, if a 3 element array is created and a CollectionView containing an Entry control is created, then 3 entry controls will be displayed, but you can't use the tab key to iterate the focus through them. In contrast, if you place several Entry controls in a VerticalStackLayout or Grid, then tab can be used to iterate through the focus as expected.
Reproduction code creates a two column grid, one with a CollectionView containing 3 Entry controls, and one column containing a similar VerticalStackView containing 3 Entry controls. Tab will iterate through the VerticalStackView as expected, but doesn't for the CollectionView.
Steps to Reproduce
Sample XAML code to demonstrate the bug:
<CollectionView Grid.Column="1"> <CollectionView.ItemsSource> <x:Array Type="{x:Type Color}"> <Color>Red</Color> <Color>Green</Color> <Color>Blue</Color> </x:Array> </CollectionView.ItemsSource> <CollectionView.ItemTemplate> <DataTemplate> <Entry FontSize="12" HeightRequest="50"/> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView>
Link to public reproduction project repository
https://github.com/systemloc/TabBugRepro
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net7.0-windows10.0.19041.0
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: