Xamarin forms two times binding a list view using MVVM

Xamarin forms two times binding a list view using MVVM

I tried in either of the ways to bind 2 list views using MVVVM but, couldn't able to do that. While I'm calling 2 property with same API with 2 different models, it is asking me to call await function. But I want both the property to fetch API at a time.

I tried in either of the ways to bind 2 list views using MVVVM but, couldn't able to do that. While I'm calling 2 property with same API with 2 different models, it is asking me to call await function. But I want both the property to fetch API at a time.

namespace Grading.ViewModel
{
    public class GradingViewModel
    {
        private ObservableCollection<GradingModel> items;

    public ObservableCollection&lt;GradingModel&gt; Items
    {
        get { return items; }
        set
        {
            items = value;
        }
    }

    public GradingViewModel()
    {
        Items = new ObservableCollection&lt;GradingModel&gt;()
        {

        };
        MyHTTP.GetAllNewsAsync(list =&gt;
        {
            foreach (GradingModel item in list)
                items.Add(item);
        });

    }

    public Details()
    {
        Items = new ObservableCollection&lt;Details&gt;()
        {

        };
        MyHTTP.GetAllNewsAsync(list =&gt;
        {
            foreach (Details info in list)
                Info.Add(info);
        });

    }

}

}


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Bring Some C++ to Xamarin Apps

On this week’s Xamarin Show, James is joined by good friend Mike Parker from the Microsoft Mobile Customer Advisory Team that shows how to easily integrate existing C++ libraries into Xamarin applications. He shows us from scratch how to bridge the libraries, expose them in C#, and easily manage memory!