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

Xamarin froms, how to use content view in list view in .cs file

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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