WebView2 control not loading HTML string
问题 WebView2 Control: As shown below, the HTML String successfully loads via NavigateToString(...) call inside Button_Click(...) event. But I need to have the HTML string loaded as soon as the Window and/or its Grid is loaded. But the following code either inside the constructor MainWindow(){...} or inside rootGrid_Loadded(...) event throws the error shown below: Question : How can we have the issue resolved and have the HTML string loaded right after either the Window or the Grid is loaded? Or