I have some customised content view in Xamarin from app, I am using that content view in list view using xcml page
<ListView.ItemTemplate>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Same thing I want to access it from ,cs file how to do that ...
var listView = new ListView { ItemTemplate = CardViewTemplate, RowHeight = 160 };
it is throwing error, how can we add template to list view ?