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

Button xmal.cs Event Clicked. Help

$
0
0

            int i = 0;
            foreach (var manutencao in SQL_Access._Manutencao)
            {          
                GridButoes.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) });

                GridButoes.Children.Add(new Button {
                    Text = manutencao.Seccao,
                    BackgroundColor = Color.FromHex("#0061B1"),
                    BorderColor = Color.Black,
                    TextColor = Color.White,
                    WidthRequest = 250,
                    HeightRequest = 40,
                    FontSize = 20,
               }, 0, i);
                i++;
            }

Hey guys, i dont know where i can use a click event with that method. Somebody can help me? Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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