How to Get string async in listview

i'm getting the data successfully from the API but i can't view it in listView
this the model

public class CustomerTaskCount
public int WeekNo { get; set; }
public string Governerate { get; set; }
public int Count { get; set; }
public int VisitCount { get; set; }
public List CustomerTaskList { get; set; }


and this the View

    <Entry Text="{Binding from}"/>
    <Entry Text="{Binding to}"/>

    <Button Text="Get Tasks" Command="{Binding GetReports}"/>

    <ListView ItemsSource="{Binding CustomerTaskCount}"
              BackgroundColor="DimGray" HasUnevenRows="True">
                    <StackLayout Orientation="Vertical" Padding="0,10">
                        <Label Text="{Binding WeekNo}"/>
                            <Label Text="{Binding VisitCount}"
                            <Label Text="{Binding Governerate}"/>
                            <Label Text="{Binding Count}"/>
                            <Label Text="{Binding CustomTaskReport.TaskId}"/>
                            <Label Text="{Binding CustomTaskReport.SchedualAt}"/>
                            <Label Text="{Binding CustomTaskReport.Governerate}"/>
                            <Label Text="{Binding CustomTaskReport.Area}"/>
                            <Label Text="{Binding CustomTaskReport.CurrentUserId}"/>
                            <Label Text="{Binding CustomTaskReport.ReportsCount}"/>
                            <Label Text="{Binding VisitedPlaces.Time}"/>
                            <Label Text="{Binding VisitedPlaces.CustomerName}"/>
                    <Label Text="{Binding VisitedPlaces.Status}"/>

Best Answer


Sign In or Register to comment.