Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin.Form How to get (Image,Header,Text) into a Listview without XAML

$
0
0

I think its a liteview i need in this case.

This is what i want to achieve.

I want every item in the listview to have a image,Header,text

The binding needs to be in the code to.

I have found this on a website.

var listView = new ListView ();
listView.ItemsSource = produkter ;
listView.ItemTemplate = new DataTemplate();

But cant figure out the rest.

List produkter = new List();
produkter = productlist();

public List productlist()
{
public String Header {get;set;}
public String text {get;set;}
public String image {get;set;}
}

Thanks alot if you can help with this.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>