question

PrasanthKumar-9388 avatar image
0 Votes"
PrasanthKumar-9388 asked JarvanZhang-MSFT commented

TEditor in xamarin forms crashing in VS 2019

The app is crashing when clicked the Teditor. This works flawlessly on Visual Studio 2017 and not on the 2019 version.

Can someone help me out with this, please? or
Suggest some other editor which has the same functionality as TEditor.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered JarvanZhang-MSFT commented

The app is crashing when clicked the Teditor. This works flawlessly on Visual Studio 2017 and not on the 2019 version.

Is there any error or exception occured? What is the 'Teditor' control? Do you mean the TEditor nuget? I cretaed a basic demo to test the control, it works fine as below.

private async void Button_Clicked(object sender, EventArgs e)
{
    TEditorResponse response = await CrossTEditor.Current.ShowTEditor("<p>XAM consulting</p>");
    if (!string.IsNullOrEmpty(response.HTML))
        browser.Source = new HtmlWebViewSource() { Html = response.HTML };
}

81029-image.png

Try to empty the bin and obj folders of both the shared project and each platform project, then build the project again. If it still doesn't work, try to update the nuget packages to the lastest stable version and test.


image.png (7.2 KiB)
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JarvanZhang-MSFT

Tried emptying bin and obj folders. Nuget packages is already updated to latest stable version.

But nothing has been improved. Same issue still exists. App is crashing while clicking this editor.

I have attached an image of error message.

83591-capture.png


0 Votes 0 ·
capture.png (33.5 KiB)

What's version of the target framework in the Android project? And do you install the Xamarin.Android.Support.v7.AppCompat library in the Android project?

0 Votes 0 ·

Target Framework in Android Project is 8.1.

Xamarin.Android.Support.v7.AppCompat library is also installed.



0 Votes 0 ·
Show more comments