Hi,
Our Project is to complex already to share a small Sample Project.
What we have is following.
Note: We are not using XAML. Our App is fully Code Behind.
Our Mainpage is a ContentPage
On the Mainpage we have a Grid with 3 Rows:
1st: Topbar for Navigation
2nd: AbsoluteLayout -> ContentView -> Content = Grid
3rd: Bottombar also for Navigation and Quick Functions
And a static ViewContainer List
So technically the user stays on the Mainpage while he is navigation throw the pages. Only the childs of the Grid in the 2nd Row are changing
This works as follows:
When the User navigates forward, by Button click:
We create a new ContentView with Content = Grid, add it as children of the Grid from the 2nd row add the created viwe to the static Viewcontainer List and "park" the view right outside the screen.
After that, we move the current view left outside the view and move the newly created view to the phonescreen.
Just like:
TranslationX = -ScreenWidth -> Left
TranslationX = 0 -> Center
TranslationX = ScreenWidth -> Right
In the second View there is the Listview which makes the trouble.
Scroll the Listview, and while Listview is still scrolling, press backbutton
When the User navigates backward:
The current view is moved from the center to the right and the previous view is moved from the left to the center.
After that, we remove the last view from our static viewcontainer list. In this case the contentview with the listview.
And when you the open the same view again, the error occours.