[PTRun]Use Mica backdrop to fix crashes with WPFUI (#32118)

* [PTRun]Use Mica backdrop to fix crashes with WPFUI

* Update MainWindow.xaml

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
This commit is contained in:
Jaime Bernardo 2024-05-07 22:20:55 +01:00 committed by GitHub
parent 3046d1e3e1
commit b9da1e6abf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@
<Grid x:Name="RootGrid" MouseDown="OnMouseDown">
<!-- We set the background here because the Acrylic can be too translucent / background too bright on Light theme -->
<Grid.Background>
<!--<Grid.Background>
<SolidColorBrush Opacity="0.8" Color="{DynamicResource ApplicationBackgroundColor}" />
</Grid.Background>
</Grid.Background>-->
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />

View File

@ -63,7 +63,7 @@ namespace PowerLauncher
if (OSVersionHelper.IsWindows11())
{
WindowBackdropType = Wpf.Ui.Controls.WindowBackdropType.Acrylic;
WindowBackdropType = Wpf.Ui.Controls.WindowBackdropType.Mica;
}
else
{