Skip to content

Commit 0270aeb

Browse files
Fixed tab issue in AcrylicWindow
1 parent afc4966 commit 0270aeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FluentWPF/Styles/Window.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
</Style>
174174

175175
<Style x:Key="AcrylicContentControlStyle" TargetType="{x:Type ContentControl}">
176+
<Setter Property="IsTabStop" Value="False"/>
176177
<Setter Property="Template">
177178
<Setter.Value>
178179
<ControlTemplate TargetType="{x:Type ContentControl}">
@@ -237,6 +238,7 @@
237238
TextWrapping="NoWrap" TextTrimming="CharacterEllipsis"/>
238239

239240
<ContentControl x:Name="customTitleBar"
241+
IsTabStop="False"
240242
Grid.Column="1"
241243
Content="{Binding (local:AcrylicWindow.TitleBar), RelativeSource={RelativeSource AncestorType=Window}}"/>
242244

@@ -342,7 +344,7 @@
342344
</Grid.RowDefinitions>
343345
<AdornerDecorator x:Name="content"
344346
Grid.Row="1">
345-
<ContentControl Content="{Binding}" ClipToBounds="True"/>
347+
<ContentControl Content="{Binding}" IsTabStop="False" ClipToBounds="True"/>
346348
</AdornerDecorator>
347349
</Grid>
348350
</Grid>

0 commit comments

Comments
 (0)