You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks million. No other webview that flexible on windows.
In my app, I try to preload urls, so that they simply show up when needed.
While I see glimpse of previous url (e.g garmin), even though new url (e.g torxtrail) has been loaded and took good time needed to load properly.
ImportsMicrosoft.Web.WebView2.CoreImportsSystem.IOClassMainWindowAsyncSubWindow_Loaded(senderAsObject,eAsRoutedEventArgs)TryAwaitInitWeb()NavigateWeb("https://www.garmin.com")Browser.Visibility=Visibility.VisibleAwaitTask.Delay(TimeSpan.FromSeconds(5))Browser.Visibility=Visibility.HiddenNavigateWeb("https://torxtrail.com")'I preloaded torxtrail site hereAwaitTask.Delay(TimeSpan.FromSeconds(3))Browser.Visibility=Visibility.VisibleBrowser.InvalidateVisual()'notice glimpse of garmin first, then torxtrail ? at 00:09CatchexAsExceptionMessageBox.Show(ex.Message)EndTryEndSubPublicAsyncFunctionInitWeb()AsTaskIfBrowser.CoreWebView2IsNothingThenDimoptionsAsNewCoreWebView2EnvironmentOptions()With{.AdditionalBrowserArguments="--inprivate --disk-cache-size=0 --media-cache-size=0 --disable-pdf-caching"}DimuserData=Path.Combine($"C:\Users\{Environment.UserName}\AppData\Local\WebTest", $"{Path.GetFileName(Forms.Application.ExecutablePath)}.WebView2\1")Directory.CreateDirectory(userData)Dimenv=AwaitCoreWebView2Environment.CreateAsync(Nothing,userData,options)AwaitBrowser.EnsureCoreWebView2Async(env)DimallKinds=CoreWebView2BrowsingDataKinds.AllProfileOrCoreWebView2BrowsingDataKinds.GeneralAutofillOrCoreWebView2BrowsingDataKinds.PasswordAutosaveAwaitBrowser.CoreWebView2.Profile.ClearBrowsingDataAsync(allKinds)Browser.CoreWebView2.Settings.AreDefaultContextMenusEnabled=FalseBrowser.Visibility=Visibility.HiddenEndIfEndFunctionSubNavigateWeb(linkAsString)Browser.CoreWebView2.Navigate(link)Browser.InvalidateVisual()EndSubEndClass
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, thanks million. No other webview that flexible on windows.
In my app, I try to preload urls, so that they simply show up when needed.
While I see glimpse of previous url (e.g garmin), even though new url (e.g torxtrail) has been loaded and took good time needed to load properly.
Glimpse is at 00:09
bandicam.2025-12-01.21-31-31-663.mp4
Beta Was this translation helpful? Give feedback.
All reactions