Skip to content

Commit 8699561

Browse files
committed
Fix webview flashing white
1 parent 835cd75 commit 8699561

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Files.App/UserControls/TerminalView.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
x:Name="WebViewControl"
1919
HorizontalAlignment="Stretch"
2020
VerticalAlignment="Stretch"
21-
Loaded="WebViewControl_LoadedAsync" />
21+
DefaultBackgroundColor="Transparent"
22+
Loaded="WebViewControl_Loaded" />
2223

2324
</Border>
2425
</UserControl>

src/Files.App/UserControls/TerminalView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public TerminalView()
123123
InitializeComponent();
124124
}
125125

126-
private async void WebViewControl_LoadedAsync(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
126+
private async void WebViewControl_Loaded(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
127127
{
128128
await WebViewControl.EnsureCoreWebView2Async();
129129
//WebViewControl.CoreWebView2.OpenDevToolsWindow();

0 commit comments

Comments
 (0)