title: How to create listview items in xaml
body: <p>Reading offical <a href="https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/data-and-databinding/" rel="nofollow noreferrer">Xamarin documentation about listview</a>, you create template in xaml (xml file) and fill listView items programably in code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:constants="clr-
   namespace:XamarinFormsSample;assembly=XamarinFormsXamlSample"
   x:Class="XamarinFormsXamlSample.Views.EmployeeListPage"
   Title="Employee List"&gt;
     &lt;ListView x:Name="EmployeeView"&gt;
       &lt;ListView.ItemTemplate&gt;
         &lt;DataTemplate&gt;
           &lt;TextCell Text="{Binding DisplayName}" /&gt;
         &lt;/DataTemplate&gt;
       &lt;/ListView.ItemTemplate&gt;
     &lt;/ListView&gt;
   &lt;/ContentPage&gt;
  </code></pre>
  
  <p>And then you fill items in code like this:</p>
  
  <pre><code>private ObservableCollection&lt;Employee&gt; employees = new ObservableCollection&lt;Employee&gt;();
  
  public EmployeeListPage()
  {
    // just for demonstration purposes
    employees.Add(new Employee{ DisplayName="Rob Finnerty"});
    employees.Add(new Employee{ DisplayName="Bill Wrestler"});
  
    //defined in XAML to follow
    EmployeeView.ItemsSource = employees;
    ...
  }
  </code></pre>
  
  <p>Is there a way to define items in xaml? I'm setting up a simple settings page and would like to add items in xml. I ended up using <a href="https://developer.xamarin.com/guides/xamarin-forms/user-interface/tableview/" rel="nofollow noreferrer">TableView</a>, but am still curious if it can be done?</p>