コード例 #1
0
        // 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;
        }
コード例 #2
0
 protected override async void OnAppearing()
 {
     base.OnAppearing();
     await itemListViewModel.UpdatePostsAsync();
 }