title: Children.Add() in Xamarin Forms
body: <p>im really new to c# and Xamarin Forms but can someone please explain to me why I'm getting an error in the last line of code below ? </p>
  
  <p>Visual Studio is indicating a curly red underline on the word <code>Children</code> on the last line of this code indicating that there is some syntax error but I don't see why that is an error since I'm just accessing a member of the class ....</p>
  
  <pre><code>var content = new ContentPage();
  content.Title = "Appuler";
  
  Label CompanyName = new Label();
  CompanyName.HorizontalTextAlignment = TextAlignment.Center;
  CompanyName.Text = "Test";
  
  Button NextPage = new Button();
  NextPage.Text = "Next Page";
  NextPage.Font = Font.SystemFontOfSize(NamedSize.Large);
  NextPage.BorderWidth = 1;
  NextPage.HorizontalOptions = LayoutOptions.Center;
  NextPage.VerticalOptions = LayoutOptions.CenterAndExpand;
  
  content.Content = new StackLayout();
  content.Content.VerticalOptions = LayoutOptions.CenterAndExpand;
  content.Content.Children.Add(CompanyName);
  </code></pre>