Share via

Best way / practive creating complex layout in code behind

Thomas Klocker 1 Reputation point
2022-01-27T12:16:18.227+00:00

Hi @all !

I have a design question on how to implement the creation of complex layouts / controls in code behind. I have a Xamarin.Forms application which reads data from a configuration file.
This data is analyzed, and then a data form will be created out of this data.
For ex. the configuration file says: i need 20 entry fields, 5 date fields, 5 memo edits, 10 pickers and 1 datagrid.

Now i wanted to ask what´s the best practice on creating the layout. I want the controls be created asynchronously, so the page get´s displayed with a activity indicator until all controls / layout is finished and can be shown.
Do you have any recommodations or experience on creating complex page layouts asynchronously in code behind?
Would be awesome if you guys could share your thoughts about this.

Thanks
Tom

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.