Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] Visual Material, does not fill the fields with the right indexes
Description
When changing the tab, if we change more than 1 tab and we come back, the view is called and the controller is not recovered. I feel that there is a strange behavior with the passage of several tabs. Maybe you have a way to preload them all to avoid this behavior?
Video
Sorry for the sound 2019-05-13-16-46-13 by Game Genie.zip
Reproduce
- Change the content of the Entry
- Go to Fake1 page and return to the MainPage
- Size of the entry have no changes
- Go to Fake 2 and come back to the main page
- Entry size have change Normal?
EDIT After several hours of research, I understood several things and managed to reproduce the problem.
- The bug only occurs with Xamarin.Forms.VIsual.Material in a page in Visual = "Material"
- The bug does not empty the fields but dump the content of the last field in the previous field, which itself flows into the previous field, and so on.
Here is an example for the reproduction: bug_repro.zip
You can watch that? Thank you.
Ok, I have edit my first post. I managed to get more informations.
Any news ?
Hi,
This is turning out to be a big issue for me.
I have a form on my android application that consists of 8 tabs. As soon as I skipped the 5th tab, it is hiding the bound values on the first tab even though they are still attached to the bindingcontext. Then, when I move onto the 6th tab, it hides the bound values of the second tab, and so on and so forth.
Same issue as @MaxenceSAUNIER .
Is this being looked at?
Thanks.
Hi,
This is turning out to be a big issue for me.
I have a form on my android application that consists of 8 tabs. As soon as I skipped the 5th tab, it is hiding the bound values on the first tab even though they are still attached to the bindingcontext. Then, when I move onto the 6th tab, it hides the bound values of the second tab, and so on and so forth.
Same issue as @MaxenceSAUNIER .
Is this being looked at?
Thanks.
UPDATE:
Just to let everyone know, I managed to get around this by making use of the Android specific method SetOffscreenPageLimit() as shown below. Issue no longer occurs.
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
Children.Add(new Page());
On<Android>().SetOffscreenPageLimit(10);