コード例 #1
0
        private void CreateScreen(string question, List <string> options, string q2)
        {
            //FadeScreenOut(layout);
            questionTitle.Text = question;
            var select = new Picker {
                HorizontalOptions = LayoutOptions.Center, TextColor = Color.White, BackgroundColor = Color.White
            };
            //select.ItemsSource = options;
            //select.Opacity = 0;
            var subQ = new Label {
                VerticalOptions = LayoutOptions.Center, HorizontalTextAlignment = TextAlignment.End, Text = q2, TextColor = Color.White
            };
            var check = new Switch {
                VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.End
            };

            GlobalLayout.Children.Add(select);
            GlobalLayout.Children.Add(subQ);
            GlobalLayout.Children.Add(check);
            select.FadeTo(100, 1000);
            subQ.FadeTo(100, 1000);
            check.FadeTo(100, 1000);
        }