Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to refresh a ListView when the DataTemplate changes in Xamarin.Forms

$
0
0

I have a ListView with two DataTemplates that are used with a DataTemplateSelector. I want the user to be able to click a button and have theListView switch between the two templates. I also have it setup so the app remembers the last view. Right now if you leave the page and go back the view changes, but i'm wondering how I can have the ListView refresh and show the new template on command/click so the user doesn't have to leave the page.

Note: I have a fixed RowHeight for each template that changes when the user hits the button as well.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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