TEditor in xamarin forms crashing in VS 2019

Prasanth Kumar 21 Reputation points
2021-03-24T10:00:53.497+00:00

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.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,936 Reputation points
    2021-03-24T12:09:39.58+00:00

    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.