/// <summary> /// Initiates a navigation to htmlContent as source HTML of a new /// document. The htmlContent parameter may not be larger than 2 MB of /// characters. The origin of the new page will be about:blank. /// </summary> /// <param name="htmlContent"></param> public void NavigateToString(string htmlContent) { if (_webView2WebView == null) { return; } _webView2WebView.NavigateToString(htmlContent); }