Skip to content

Commit 8511767

Browse files
authored
Disable Tab navigation to window content container control (#226)
The `windowArea` control serves only as a container and is not interactive. There’s no need for it to receive keyboard focus.
1 parent f0bda9d commit 8511767

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WinUIEx/WindowEx.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public WindowEx()
5555
windowArea = new ContentControl()
5656
{
5757
HorizontalContentAlignment = HorizontalAlignment.Stretch,
58-
VerticalContentAlignment = VerticalAlignment.Stretch
58+
VerticalContentAlignment = VerticalAlignment.Stretch,
59+
IsTabStop = false
5960
};
6061
Grid.SetRow(windowArea, 1);
6162
rootContent.Children.Add(windowArea);

0 commit comments

Comments
 (0)