Xamarin Using a DataTemplateSelector Not in a ListView

I have a simple question. I have two datasets defined on my Xamarin Forms page. I want to swap each other when the button is pressed. I know with ListView, I can use ItemTemplateand bind to mine DataTemplateSelectorto change the views for the items in the list.

But I just want to change something like View / StackLayout / Frame, by running DataTemplateSelectorwith the click of a button or similar. But I can not find controls that offer a list ItemTemplate ListView.

Is there a way that can accomplish this?

+4
source share

Source: https://habr.com/ru/post/1678356/


All Articles