KeyboardNavigation failing to focus "off-screen" controls inside a ScrollViewer
Code: Select all
<Grid x:Name="MainGrid" KeyboardNavigation.DirectionalNavigation="Cycle">
<ScrollViewer CanContentScroll="True" Focusable="False">
<StackPanel>
<!-- 10 focusable controls defined here. (Sliders, toggles, etc.). Lets call them C0, C1, C2,... through C9 -->
</StackPanel>
</ScrollViewer>
<Border
<Button x:Name="OkButton"/>
</Border>
</Grid>
What I've described above is exactly how it works in Blend and WPF. However, in Noesis, I am observing something different. Let's say that the scrollable view is only big enough to display 3 controls (C0 - C2). In Noesis, when I am focused on C2 and press down, it focuses the OkButton. It should be scrolling down a bit and focusing C3! If the window is scrolled enough for any part of C3 to be visible, it would scroll down and focus it, but if it's not visible it is getting skipped! I think this is a bug in how Noesis is choosing what control to target with navigation commands.
-
sfernandez
Site Admin
- Posts: 2997
- Joined:
Re: KeyboardNavigation failing to focus "off-screen" controls inside a ScrollViewer
If the behavior is different from WPF then it is a bug in Noesis, could you please report it in our bugtracker?
Re: KeyboardNavigation failing to focus "off-screen" controls inside a ScrollViewer
Thanks for the report!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 47 guests