View Issue Details

IDProjectCategoryView StatusLast Update
0003900NoesisGUIC# SDKpublic2026-10-16 12:07
Reporteraivanov Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.2.4 
Target Version4.0.3 
Summary0003900: Focus Scope Doesn't Work Correctly With TabControl/TabItem
Description

Setting FocusManager.IsFocusScope="True" for each tab of a tab control should result in focus automatically being saved when a tab is switched away from and then restored when the same tab is switched back to. This does not occur.

Post on Noesis forum: https://www.noesisengine.com/forums/viewtopic.php?t=3546&sid=6b59bc0a8bb0539441a38451dea0200d

Steps To Reproduce

The following two XAML snippets show an example construction where focus is not saved when tabs are switched. After focusing an element on the first tab and then switching to the second tab and back, focus is not restored to the same element it was before. The expected behavior would be for focus to return to the last element that was focused before the tab switch happened.

<TabControl x:Name="MyTabControl" SelectedIndex="{Binding ActiveTabIndex}">
<TabItem x:Name="Tab1">
<local:CustomControlTab1 FocusManager.IsFocusScope="True"/>
</TabItem>
<TabItem x:Name="Tab2">
<local:CustomControlTab2 FocusManager.IsFocusScope="True"/>
</TabItem>
</TabControl>

<UserControl x:Class="CustomControlTab1">
<Grid x:Name="Root" Width="1700">

    <ScrollViewer x:Name="Container" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabNavigation="Contained" KeyboardNavigation.ControlTabNavigation="Contained">
        <StackPanel>
            <!-- various focusable elements arranged vertically -->
        </StackPanel>
    </ScrollViewer>
</Grid>

</UserControl>

PlatformWindows

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-01-14 20:41 aivanov New Issue
2025-01-14 20:41 aivanov Tag Attached: Focus
2025-01-14 20:41 aivanov Tag Attached: FocusScope
2025-01-14 20:41 aivanov Tag Attached: xaml
2025-01-15 09:21 sfernandez Assigned To => sfernandez
2025-01-15 09:21 sfernandez Status new => assigned
2025-01-15 09:21 sfernandez Target Version => 3.2.7
2025-01-20 17:42 jsantos Target Version 3.2.7 => 3.2.8
2025-06-06 12:52 jsantos Target Version 3.2.8 => 3.2.9
2025-10-02 00:48 jsantos Target Version 3.2.9 => 3.2.10
2025-10-20 18:25 jsantos Target Version 3.2.10 => 3.2.11
2026-01-20 19:32 jsantos Target Version 3.2.11 => 3.2.12
2026-03-04 00:39 jsantos Target Version 3.2.12 => 3.2.13
2026-04-27 12:17 jsantos Target Version 3.2.13 => 3.2.14
2026-10-16 12:07 jsantos Target Version 3.2.14 => 4.0.3