Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] array1 = { "hotel", "a", "b", "c", "c", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b", "b" };
- StackLayout stackLayout = new StackLayout
- {Orientation = StackOrientation.Horizontal,
- BackgroundColor = Color.Goldenrod,
- HorizontalOptions = LayoutOptions.CenterAndExpand,};
- Content = new ScrollView{VerticalOptions = LayoutOptions.Start,
- Orientation = ScrollOrientation.Horizontal,
- HorizontalOptions = LayoutOptions.CenterAndExpand,Content = stackLayout,};
- for (int i = 0; i < array1.Length; i++)
- {foreach (var na in array1) {stackLayout.Children.Add
- (new Button{
- Text = na,
- TextColor = Color.Gray, FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Button)) }
- ); } }
Add Comment
Please, Sign In to add comment