// Remote connection using jsonplaceholder.typicode.com/posts; async void OnToggled_R(object sender, EventArgs e) { await itemListViewModel.UpdatePostsAsync(); postsListView.ItemsSource = await itemListViewModel.Fetchpost(); Additem.IsEnabled = false; }
protected override async void OnAppearing() { base.OnAppearing(); await itemListViewModel.UpdatePostsAsync(); }