Forum Xamarin.Forms

How to prevent webview reload after the tab bar selection

ErdoganErdogan Member ✭✭✭


I have Shell Page and this page includes a FlyoutItem.

        <Tab title="Profile" ...> 

        <Tab title="Web" ...>
       <views:WebBrowserPage/> **<< Includes a Custom WebView**

I'm selecting the Web tab and webView looks as expected. Then I visit a category page.
After that, I'm selecting the Profile tab.

and If I tap the Web tab again, it creates a new instance of webView. For that reason, all web content is resetting.

How to prevent creating an instance of the WebView after the tab bar selection? I need to see the web page where I left it (in category page, same scroll position).



Sign In or Register to comment.