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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfTabView MVVM Items Binding

Thread ID:





146797 Aug 20,2019 02:23 PM UTC Aug 27,2019 06:21 AM UTC Xamarin.Forms 3
Tags: SfTabView
Asked On August 20, 2019 02:23 PM UTC


I am using Syncfusion.Xamarin.SfTabView v17.2.0.41.

Is it possible to Bind all the SfTabItems with MVVM? If so, could you please provide an example where the Items are set in the model?

I tried something, but it does not display anything. Any help would be greatly appreciated.

<tabView:SfTabView Items="{Binding Items}"></tabView:SfTabView>

public TabItemCollection Items = new TabItemCollection();
var ti = new SfTabItem();

var view = new StackLayout();
view.Children.Add(new Label { Text = "hello" });

ti.Content = view;
ti.Title = "tab1";


Kind regards

Muneesh Kumar G [Syncfusion]
Replied On August 21, 2019 09:39 AM UTC

Hi Phil, 
Greetings from Syncfusion.  
We have analyzed your requirement and we have prepared a sample based on this. Please find the sample from the following location.  
Here we have bound the TabItemsCollection Items property and it works fine.  
Please let us know if you have any other queries.  
Muneesh Kumar G 

Replied On August 26, 2019 02:41 PM UTC


Thank you for your sample, it helped me to find where the problem was.
You're right, the control works as it should, there was some other code I used that caused the DropDownList to lose focus.

Kind regards

Muneesh Kumar G [Syncfusion]
Replied On August 27, 2019 06:21 AM UTC

Hi Phil,  
Thanks for the update. 
We are glad to know that the given solution works. Please let us know if you need any further assistance. 
Muneesh Kumar G. 


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