title: How to get data from Parse.com in a list and apply it in listview?
body: <p>I'm very new to Parse.com and can't seem to get fetching of data working.
  I tried an async method which did a foreach but that never seemed to work so then I did a try with a <code>ParseQuery</code> but that didn't work either.
  For example:</p>
  
  <pre><code>ParseQuery&lt;ParseObject&gt; query = ParseObject.GetQuery("Horse");
  string name = query.Get&lt;string&gt;("Name");
  Debug.WriteLine("Horse: " + name);
  </code></pre>
  
  <p>Ideally I would like to get <strong>all</strong> records from the model <code>Horse</code> and then loop over it to fill up a listview. I now have a hardcoded sample but since I don't even get all records from the table in a list I have no clue how to continue.</p>
  
  <pre><code>var listView = new ListView
          {
              RowHeight = 40
          };
          listView.ItemsSource = new string[]
              {
              //This should be filled up with the field 'Name' from the model 'Horse' dynamically..
              "Buy pears",
              "Buy oranges",
              "Buy mangos",
              "Buy apples",
              "Buy bananas"
              };
          Content = new StackLayout
          {
              VerticalOptions = LayoutOptions.FillAndExpand,
              Children = { listView }
          };
  </code></pre>
  
  <p>Could anybody give me a helping hand here please? I followed the guide from <a href="https://parse.com/docs/dotnet_guide#objects-retrieving" rel="nofollow">https://parse.com/docs/dotnet_guide#objects-retrieving</a> but those options do not seem to work.</p>
  
  <p><strong>Update:</strong>
  So far I can fetch all the data thanks to the answer from har07.
  Now I get an error when I want to fill up the ListView:</p>
  
  <pre><code>public async void getHorsesFromDb()
      {
          ParseQuery&lt;ParseObject&gt; query = ParseObject.GetQuery("Horse");
          IEnumerable&lt;ParseObject&gt; horses = await query.FindAsync();
  
          var listView = new ListView();
          List&lt;string&gt; horseList = null;
  
          foreach (ParseObject horse in horses)
          {
              string name = horse.Get&lt;string&gt;("Name");
              horseList.Add(name);
              Debug.WriteLine("Horse: " + name);
          }
  
          listView.ItemsSource = horseList;
  
          // Using ItemTapped
          listView.ItemTapped += async (sender, e) =&gt; {
              await DisplayAlert("Tapped", e.Item + " row was tapped", "OK");
              Debug.WriteLine("Tapped: " + e.Item);
              ((ListView)sender).SelectedItem = null; // de-select the row
          };
      }
  </code></pre>
  
  <p>Error on my screen:</p>
  
  <pre><code>The current stack frame was not found in a loaded module. Source cannot be shown for this location.
  &gt;   0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal    C#
  </code></pre>