CJM
CJM

Reputation: 259

Xamarin Xaml dynamically creating controls?

I have been looking around alot and cannot find any resources that explain how to dynamically add controls to a form. This is on a android application.

Essentcially all im looking to do is have a button that when clicked adds another button underneath. Then when clicked again adds more buttons etc etc.

Can anyone direct me to some examples of tutorials that can help me?

Thanks

Upvotes: 1

Views: 7026

Answers (1)

Anees Deen
Anees Deen

Reputation: 1413

You can create your controls based on your need. The following link will help you to create buttons. This is applicable for all controls

How to add a button dynamically in Android?

Also, Xamarin Android is same as native Android. I would suggest you search your queries in native android also and then you can easily convert the code to Xamarin Android

Upvotes: 1

Related Questions