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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Question about SfTabView and MVVM

Thread ID:

Created:

Updated:

Platform:

Replies:

145322 Jun 17,2019 05:39 PM UTC Sep 24,2019 09:11 AM UTC Xamarin.Forms 1
loading
Tags: SfTabView
William Gower
Asked On June 17, 2019 05:39 PM UTC

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?



Muneesh Kumar G [Syncfusion]
Replied On 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. 
 
Regards,
Muneesh Kumar G.  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon