Skip to content

Commit a34b81e

Browse files
authored
Update Freeze.md
1 parent b7cefad commit a34b81e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

specs/Freeze.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ async protected void OnSuspending(object sender, SuspendingEventArgs args)
1313
{
1414
SuspendingDeferral deferral = args.SuspendingOperation.GetDeferral();
1515
// Ensure that CoreWebView2Controller is invisible, it must be invisible for TrySuspendAsync to succeed.
16-
// webView here is Microsoft.Web.WebView2.Wpf.WebView2.
17-
webView.Visibility = false;
16+
// webView here is WinUI WebView2 control.
17+
// For WPF and Winforms WebView2 control, do webView.Visibility = false;
18+
webView.Visibility = Visibility.Collapsed;
1819
await webView.CoreWebView2.TrySuspendAsync();
1920
deferral.Complete();
2021
}

0 commit comments

Comments
 (0)