My team is working on a project where controls are being created dynamically. On the ContentPage there are X number of StackLayouts, each with an Entry control. We would like to implement a "Clear" button to clear the Entries and a "Save" button to save the values in the Entry fields. Though I thought this would be a simple task involving iterating through the Entry fields in the ContentPage (or the StackLayouts), this has proved otherwise. What is the best way to accomplish this? Is it even possible to iterate?
Since the controls are dynamic, we can't set x:Name or this might be a lot easier.
What we were hoping for was saving the Entry IDs in a list and then iterating through controls to find those IDs later, but iteration seems to be an issue.
I am beginning to feel like Xamarin.Forms is designed to make it impossible to do this when it seems like such a basic process. Any help on this would be very appreciated.