Databinding ListView with Custom Class

Databinding ListView with Custom Class

I would like to databind a custom class when displayed in xmal, but I'm getting nothing displayed in the list view. Any pointers to what I'm missing would be much appreciated.

I would like to databind a custom class when displayed in xmal, but I'm getting nothing displayed in the list view. Any pointers to what I'm missing would be much appreciated.

  public Transactional()
    {

    string oCustomerLoggedIn = Preferences.Get("uLoginUsername", "default_value");

    int oCustomerLoggedInId = GetCustomerId(oCustomerLoggedIn);



    List<TransactionsList> custTransactions  = ViewCustomerTransactions(oCustomerLoggedInId);




    InitializeComponent();



    listView.SetBinding(ListView.ItemsSourceProperty, new Binding("."));
    listView.BindingContext = custTransactions;
}

<ListView x:Name="listView" ItemSelected="OnItemSelected"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Clicked="OnMore" CommandParameter="{Binding .}" Text="More" /> <MenuItem Clicked="OnDelete" CommandParameter="{Binding .}" Text="Delete" IsDestructive="True" /> </ViewCell.ContextActions> <StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal"> <StackLayout Padding="5,0,0,0" VerticalOptions="StartAndExpand" Orientation="Vertical"> <Label Text="{Binding .}" VerticalTextAlignment="Center" FontSize="Medium" /> </StackLayout> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>


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!