コード例 #1
0
 private void InitializeViews()
 {
     this.BackgroundColor = Color.LightGoldenrodYellow;
     this.OutlineColor    = Color.Accent;
     this.Padding         = new Thickness(5);
     {
         GDmain = new Grid();
         GDmain.RowDefinitions.Add(new RowDefinition {
             Height = new GridLength(1, GridUnitType.Auto)
         });
         GDmain.RowDefinitions.Add(new RowDefinition {
             Height = new GridLength(1, GridUnitType.Star)
         });
         GDmain.RowDefinitions.Add(new RowDefinition {
             Height = new GridLength(1, GridUnitType.Auto)
         });
         {
             BTNrefresh = new Button {
                 Text = "Initializing...", BackgroundColor = Color.YellowGreen
             };
             GDmain.Children.Add(BTNrefresh, 0, 0);
         }
         {
             SPcontent = new MyStackPanel(ScrollOrientation.Vertical);
         }
         {
             PBmain = new ActivityIndicator {
                 IsRunning = IsVisible = true
             };
             GDmain.Children.Add(PBmain, 0, 2);
         }
         this.Content = GDmain;
     }
 }
コード例 #2
0
 private void InitializaControls()
 {
     {
         SPpanel = new MyStackPanel(ScrollOrientation.Horizontal)
         {
             BackgroundColor = Color.LightYellow
         };
         {
             LBpadding = new Label();
             SPpanel.Children.Add(LBpadding);
         }
         this.Content = SPpanel;
     }
 }