How to prevent webview in MasterDetail page to reload ?

Hello,

I am quite new in Xamarin dev.
We have built a simple application based on MasterDetailPage navigation pattern.
In each detail page we have a webview with each a different URL loaded.

Any time we display a detail page, the webview is reloaded.

Do you know how it is possible to prevent this reload if the webview have been reloaded once before ?
We would like the webviews to be loaded only once as it is working on NavigationPage pattern. (when we popAsync a page, the previous page is displayed without reloading the webview)

Thank you for your help.

Best Answer

Answers

  • HaderachHaderach Member ✭✭

    Thank you so much for your reply.

    We have tried the same approach but doesn't work.
    Do you mind sending us the whole source project?

    Thank you for your help.

  • LandLuLandLu Member, Xamarin Team Xamurai

    I used the default template for Master-Detail page and embed a simple webview on one of the detail pages. Try to share your samples here to help us reproduce your issues.

  • HaderachHaderach Member ✭✭

    Hello,

    Thank you for your answer.... It works!

  • HaderachHaderach Member ✭✭

    Just a last question... Do you know if it is possible to keep the scroll position ?

Sign In or Register to comment.