Ilonic
✅ XAML Constructor Error e0434352
Ссылка на объект не указывает на экземпляр объекта.
в Atlantide.NVM.<SetText>d__12.MoveNext() в C:\Users\WhyToKnowMyName\source\repos\Atlantide\Atlantide\NVM.xaml.cs:строка 147
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
private async void SetText(string text)
{
if (Editor == null)
{
Debug.WriteLine("Editor is null!");
return;
}
await Editor.EnsureCoreWebView2Async(); // Line 147
await Editor.CoreWebView2.ExecuteScriptAsync("editor.setValue("" + System.Web.HttpUtility.JavaScriptStringEncode(text) + "")");
}
It's using WebView2
12 replies