c# - xamarin forms web view crashed -


work web view however1 when try work web view

the page crashed , error: "an unhandled exception occured."

attaching code:

also want know if navagate web view image

xaml:

<?xml version="1.0" encoding="utf-8" ?> <contentpage xmlns="http://xamarin.com/schemas/2014/forms"          xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"                       x:class="mashamapp.mimageeditor"> <contentpage.content>     <stacklayout>         <stacklayout orientation="horizontal" padding="10,10">             <button text="back" horizontaloptions="startandexpand" clicked="backclicked" />             <button text="forward" horizontaloptions="end" clicked="forwardclicked" />         </stacklayout>         <webview x:name="browser" widthrequest="1000" heightrequest="1000" />     </stacklayout> </contentpage.content>  </contentpage> 

c#:

using syncfusion.sfimageeditor.xforms; using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using xamarin.forms; using xamarin.forms.xaml;  namespace mashamapp { [xamlcompilation(xamlcompilationoptions.compile)] public partial class mimageeditor : contentpage {     public mimageeditor()     {         initializecomponent();         browser.source = "http://www.walla.co.il";             }      private void backclicked(object sender, eventargs e) { // check see if there anywhere go     if (browser.cangoback) {         browser.goback ();     } else { // if not, leave view         navigation.popasync ();     } }  private void forwardclicked(object sender, eventargs e) {     if (browser.cangoforward) {         browser.goforward ();     } }   } } 


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -