Separating the content of SfTabItem to another class/file.

Hi,

I want to separate the content of SfTabItem to another file. So, instead of:
<tabview:SfTabItem.Content>
                    <listView:SfListView x:Name="listView" ItemSize="70"
                             AutoFitMode="Height"  
                             AllowSwiping="True" 
                             ItemsSource="{Binding ContactsInfo}" >

                         ......
</<tabview:SfTabItem.Content>
I want it to be something like:
<tabview:SfTabItem.Content>
                   <x:local myListItem /> 
</<tabview:SfTabItem.Content>
myListItem is another view class. Can it be done? How? Thanks.

1 Reply

AS Anandraj Selvam Syncfusion Team March 13, 2020 12:22 PM UTC

Hi Jose, 
  
Greetings from the Syncfusion. 
  
We have analyzed your query and prepared the sample based on your requirement. Please find the sample from the below link, 
  
  
In this sample, we have added SfListview on another content view and referred it locally to the content of SfTabView. 
  
Please let us know if you have any concern. 
  
Regards, 
Anand Raj S. 


Loader.
Up arrow icon