On UWP, when tabbing around a ContentPage that isn't a NavigationPage, the focus moves as expected. However, if a NavigationPage is being used, the focus disappears for a minimum of one tab. If I run the accessibility sample found at https://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-accessibility/ on UWP, tabbing around the pages results in the focus disappearing for one tab stop on each page. That's the case whether or not the page has a back button.
Using that sample, on the main page, the focus goes from the "Automation Properties" button, to the "Tab Order" button, then disappears for one stop, then cycles back to the "Automation Properties" button again.
Does anybody know where the focus goes? And depending on where it goes, how to make it either visible/responsive or to stop it going wherever it is?
(In the app that I am working on, the focus disappear for 3 tab stops on each NavigationPage. I'm hoping identifying where it goes in the simpler case of the Xamarin accessibility sample will help identify what happens in more complex cases).
Answers
Can you share gif about this issue?I run this project in my comptuer,the focus do not disappears, it awalys in the Button when I tabbing around the page.
That looks like you have Narrator running. If so, turn off Narrator and just use the Tab key on the keyboard.
What software do you use to record running of apps as GIFs?
I've attached a GIF of the accessibility sample in use, just Tabbing (use the Tab key) around the main page. As you can see, the focus moves from the first button, to the second, then disappears before cycling back to the beginning again.
Yes, I get it, I notice this issue was raised in the github.
https://github.com/xamarin/Xamarin.Forms/issues/9514
That's a different issue. I'll raise a new one when I get a moment.
Fine.
Logged at https://github.com/xamarin/Xamarin.Forms/issues/12723
Thanks for your sharing.