microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.28k stars 675 forks source link

Modify low DPI, white border appears at the top of the window #9951

Open deisier opened 1 week ago

deisier commented 1 week ago

Describe the bug

98573b0c840f096fbe898cacf5052ca e8dca6247d497ecb881a1c378dedd16 68c7c3629882a2082eb66ae052c2dc2 <Window x:Class="mDemo_1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:mDemo_1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:media="using:Microsoft.UI.Xaml.Media" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" mc:Ignorable="d">

<Window.SystemBackdrop>
    <DesktopAcrylicBackdrop />
</Window.SystemBackdrop>

<!--<Frame x:Name="myFrame" Background="Red"/>-->
<Grid Background="Red">

</Grid>

Steps to reproduce the bug

Open the window, adjust the zoom from 200% to 100% and after full screen, a white border appears on the window

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (21H2): Build 22000

Additional context

No response

deisier commented 1 week ago

Remember to adjust the browser's theme color, otherwise you won't see the white border image