![]() ![]() ![]() WebViewBrowser is indeed exposing CoreWebView2. I was already referencing those assemblies but I was wrong about CoreWebView2. I don't know which event is right because can't test. Private void WebView_CoreWebView2InitializationCompleted(object sender, .CoreWebView2InitializationCompletedEventArgs e) Then create events methods in code behind and add logic from link: private void WebViewBrowser_Initialized(object sender, EventArgs e) ![]() I have tried to test on WebViewBrowser from ArcGIS community samples but it doesn't work on my computer at all without changes.Īdd name and one of events (Initialized or CoreWebView2InitializationCompleted) to frameworkControls:WebViewBrowser: There is possibility to do that from the code behind. If it was currently not possible to set the cookies for the WebViewBrowser control, would the ArcGIS Pro SDK 3.0 expose either CoreWebView2 or CookieManager, or perhaps the event WebResourceRequested? Īnother option is to capture the event WebResourceRequested and attach a header to the CoreWebView2WebResourceRequest provided by CoreWebView2WebResourceRequestedEventArgs. The cookie manager can be accessed directly via the property CookieManager. Is there any way to achieve this?įrom what I have gathered, WebView2 allows to achieve this via its property CoreWebView2. However, as ChromiumWebBrowser has been deprecated, I have just switched to using the WebViewBrowser control instead and I cannot find a way to set the cookies or access the cookie manager. Up until now I've been using the ChromiumWebBrowser control and I was able to get the cookie manager by means of either Cef.GetGlobalCookieManager() Is it possible to set cookies for the new WebViewBrowser control? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |