Style:
<Style TargetType="{x:Type Window}"> <Setter Property="SnapsToDevicePixels" Value="True"/> <Setter Property="ResizeMode" Value="NoResize"/> <Setter Property="WindowChrome.WindowChrome"> <Setter.Value> <WindowChrome NonClientFrameEdges="None" CornerRadius="0" GlassFrameThickness="0" ResizeBorderThickness="0" CaptionHeight="30"/> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Window}"> <Border BorderThickness="1" BorderBrush="DarkGray" Background="#F0F0F0"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <!-- TitleBar --> <Border Background="White" Grid.Row="0"/> <!-- Window content --> <AdornerDecorator Grid.Row="1"> <ContentPresenter/> </AdornerDecorator> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>
Question
How can I include a standard shadow for my stylized window:

The question, of course, is easily solved if you set WindowChrome.GlassFrameThickness to -1, but this has a "side effect": degradation of the font quality.

For me, this result is unsatisfactory): Therefore, an alternative solution is required to include the standard shadow (do not disdain WinApi).
PS: You may have suggestions for improving the quality of a specific font, but I will say straight away that all this is useless. You can play TextOptions with TextOptions , SnapsToDevicePixels , UseLayoutRounding , etc. etc. (by the way, the text shown in the picture is already Display ), and still nothing will come of it! The problem is not in the font, but in setting the window.
UDP: You do not need to also suggest that WindowStyle set to None and a shade inside the template. This is completely different. I'm talking about the standard shade . WindowsStyle should not change !