We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Question about SfTabView and MVVM

I have a ContentPage with a SfTabView on it with 3 TabItems and each TabItem has a ListView in it. Should I have a single ViewModel that handles the entire ContentPage or 3 separate ViewModels one for each ListView?

1 Reply

MK Muneesh Kumar G Syncfusion Team June 18, 2019 06:57 AM UTC

Hi William, 
Greetings from Syncfusion. 
We have validated your query, you can set either a single view model to the content page or separate view model for each listview based on your requirement. We have created a sample for this. Please find the sample from below link. 
Sample Link: 
In this sample, we have added three-tab item with listview as the tab item content and set the separate view model for each listview. 
Please get back to us, if you have any other queries. 
Muneesh Kumar G.  

Live Chat Icon For mobile
Up arrow icon