title: xamarin forms listview auto refresh
body: <p>I'm new to Xamarin.Forms and I'm making a Listview that needs to update every time I insert new information in the database, so far I can display the info of my list and add it via a PHP file but I can't make it refresh automatically. </p>
  
  <pre><code>namespace Proyect
  {
      [XamlCompilation(XamlCompilationOptions.Compile)]
      public partial class Alarms : ContentPage
      {
          public Alarms ()
          {
              InitializeComponent();          
              AlarmsList.ItemTemplate = new DataTemplate(typeof(Cells.AlarmsCell));   //Template of the Alarms
              this.LoadAlarms();
          }
  
          private async void LoadAlarms()
          {
              try
              {
                  HttpClient client = new HttpClient();
                  client.BaseAddress = new Uri("Http://192.168.0.13");  
                  string url = string.Format("/Proyect/alarmscode.php?");
                  var response = await client.GetAsync(url);
                  var result = response.Content.ReadAsStringAsync().Result;
                  var jsonalarms = JsonConvert.DeserializeObject&lt;ObservableCollection&lt;GetAlarms&gt;&gt;(result);
                  AlarmsList.ItemsSource = jsonalarms;
              }
              catch (Exception e)
              {
                  await DisplayAlert("ERROR", e + "", "OK");
                  return;
              } 
          }
      }
  }
  </code></pre>