mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-01 01:49:06 +08:00
Fix for black UI glitch
This commit is contained in:
parent
95dc2f79a6
commit
927d78cc04
@ -6,6 +6,7 @@
|
||||
xmlns:p="clr-namespace:ImageResizer.Properties"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:ui="http://schemas.modernwpf.com/2019"
|
||||
ContentRendered="WindowContentRendered"
|
||||
MinWidth="560"
|
||||
MinHeight="340"
|
||||
ui:WindowHelper.UseModernWindowStyle="True"
|
||||
|
@ -25,5 +25,11 @@ namespace ImageResizer.Views
|
||||
Process.Start(e.Uri.ToString());
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
// Fix for black outline WPF bug when a window uses custom chrome. More info here https://stackoverflow.com/questions/29207331/wpf-window-with-custom-chrome-has-unwanted-outline-on-right-and-bottom
|
||||
private void WindowContentRendered(object sender, System.EventArgs e)
|
||||
{
|
||||
InvalidateVisual();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user