Forum Xamarin.Forms

How to prevent webview reload after the tab bar selection

ErdoganErdogan Member ✭✭✭

Hello,

I have Shell Page and this page includes a FlyoutItem.

    <FlyoutItem>
        <Tab title="Profile" ...> 
        <views: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).

Tagged:

Answers

Sign In or Register to comment.