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

CachingStrategy OnPlatform axml

$
0
0

Hello, I would like to choose the Caching Strategy for each platform.
My code is as follows but does not work:

<ListView> <ListView.CachingStrategy> <OnPlatform x:TypeArguments="x:String" iOS="RetainElement" Android="RecycleElement" /> </ListView.CachingStrategy> <ListView.ItemTemplate> <DataTemplate> <ViewCell> ... </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>

How can I do it?

Thank you.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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