Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Create Button.Clicked in a loop

$
0
0

Hello!
I wanted to make buttons in layout, based on number of lines in file. Everything, but click event, works fine.
How to make it in this case?
for (some values) {
//button making
//button event

}

Button.Clicked += (sender, e) =>
{
//do sth
}
doesn't work
Feel free to ask if my description is unclear ;)


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>