问题
I have buttons created by loop and each button it corresponds to a desk, so i have to able when i click a button i have to design spesific row of database
how i add buttons:
for (int i = 1; i < terasmasasayisi; i++)
{
var buttonteras = new Button
{
Text = i.ToString(),
HeightRequest = 45,
WidthRequest = 45,
Margin = 5,
BorderRadius = 100,
};``
teras.Children.Add(button);
}
If i can set a relationship between the table number and i(desknumber), I can do this according to the id from my database.
im so confused
来源:https://stackoverflow.com/questions/60465994/how-to-give-unique-id-for-each-button