Skip to content

Commit bad316d

Browse files
committed
Fix the issue that the size of AcrylicWindow is affected by the window title string(#106)
1 parent 4f90b74 commit bad316d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FluentWPF/Styles/Window.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@
217217
Grid.Row="0" Grid.RowSpan="2"/>
218218
<ResizeGrip x:Name="resizeGrip" Grid.Row="1"
219219
HorizontalAlignment="Right" IsTabStop="False" VerticalAlignment="Bottom" Visibility="Collapsed"/>
220-
<Grid x:Name="captionGrid" TextBlock.Foreground="{DynamicResource SystemBaseHighColorBrush}">
220+
<Grid x:Name="captionGrid" TextBlock.Foreground="{DynamicResource SystemBaseHighColorBrush}"
221+
Width="{Binding ActualWidth, ElementName=windowContent}">
221222
<Grid.ColumnDefinitions>
222223
<ColumnDefinition Width="Auto"/>
223224
<ColumnDefinition />

0 commit comments

Comments
 (0)