ContentPage as tab view item?

Hi,

I have been using the standard xamarin forms TabbedPage, and now I would like to switch to SfTabView.

Before, all my tabs were actually ContentPages, but now I was looking at the SfTabView documentation, and it looks like I can't use my content pages anymore.

How can I still reuse my ContentPages inside a <tabView:SfTabItem.Content>?

Ideally,

<tabView:SfTabItem.Content>
    <views:MyContentPage></views:MyContentPage>
</tabView:SfTabItem.Content>



19 Replies

RK Rathana Kumar Sekar Syncfusion Team March 7, 2018 11:39 AM UTC

Hi Cristian Merli,
 
Thanks for contacting Syncfusion Support.
 
In our current implementation there is no possible way to set the ContentPage as a SfTabItem ContentView. SfTabView is a content view control were each TabItem can hold a view of a ContentPage. We have also considered your request as a feature and logged feature report for the same.
 
This feature will be available any of upcoming releases. 
 
Regards,
Rathanakumar S.



AE Andrew Elliott July 10, 2018 02:09 PM UTC

I'd like this ability as well.


PA Paul Anderson S Syncfusion Team July 11, 2018 04:34 AM UTC

Hi Andrew, 
 
Thanks for the update. 
 
We have already considered the requirement in SfTabView as a feature and added to our feature list. Currently we don’t have immediate plans. This will be implemented in any of our upcoming Volume releases. 
 
Regards, 
Paul Anderson


AN ANSON June 1, 2019 11:01 AM UTC

the latest version already cover this issue?



MK Muneesh Kumar G Syncfusion Team June 3, 2019 06:59 AM UTC

Hi Anson, 
 
Currently this feature request is in validated state and will be considered for implementation at some point. While this feature itself is important, there are other features with higher priority so we are afraid we cannot provide you an exact timeline on when this feature will be available in our suite. We suggest you to follow this, for further updates when available. 
  
 
Regards,
Muneesh Kumar G. 
 



AZ Adam Zucchi January 7, 2020 01:22 AM UTC

+1!

I am also interested in this functionality : )


HM Hemalatha Marikumar Syncfusion Team January 7, 2020 06:33 AM UTC

Hi Adam Zucchi, 
 
Thanks for your update. 
 
The required feature “ContentPage support for TabItem” will be available in our any of our upcoming release. Please track the provided feedback link to know the status of the feature. 
 
Please let us know if you need any further assistance. 
 
Regards, 
Hemalatha M. 



PE Perten March 10, 2020 08:34 AM UTC

I'm also eagerly waiting for ContentPage support in sfTabView, 


SP Sakthivel Palaniyappan Syncfusion Team March 11, 2020 01:01 PM UTC


Hi Raivo,

Thanks for your update.

The required feature “ContentPage support for TabItem” will be available in any of our upcoming release. Please track the already provided feedback link in this to know the status of the feature.

Please upvote this feature to make this our priority. While this feature itself is important we will prioritize the features every release, based on the user demands. If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.

Regards,
Sakthivel P.



FA Fabio April 14, 2020 07:57 PM UTC

Hi,

SfTabView is amazing control but needs to support ContentPage on TabItem to be perfect.

Please implement this.

Best Regards,
Fabio Barreto


SP Sakthivel Palaniyappan Syncfusion Team April 15, 2020 11:39 AM UTC

Hi Fabio,

Greetings from Syncfusion.

We will consider this feature to implement in any of our upcoming releases, but we don't have immediate plan for this .We would like to inform that you can set the content of content page  to the SfTabItem as like in below KB. 

KB Link: https://www.syncfusion.com/kb/11041/how-to-load-different-content-page-as-tab-items-content

Please get back us, if you have any concern.

Regards,
Sakthivel P.
 



AL Alexis August 16, 2020 09:48 PM UTC

Hi,

I will also need this feature. 

My goal si to be able to load a sfbackdroip page in a tab.

When will it be available?

Thanks,


SP Sakthivel Palaniyappan Syncfusion Team August 17, 2020 11:30 AM UTC

Hi Alexis,

We would like to let you know that the current implementation of SfTabView has the Xamarin View as a base and View cannot hold a page. So, it is not possible to provide this feature in our existing TabView and it will break the application for the existing users. We have considered this as a new component supporting page types in TabView and we will implement the control in our upcoming future release.

However you can achieve your requirement by setting ContentPage content to SfTabItem as like below code snippet.

XAML:

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

ViewModel:

 
  public TabItemCollection Items 
        { 
            get { return items; } 
            set 
            { 
                items = value; 
                OnPropertyChanged("Items"); 
            } 
        } 
        public ViewModel() 
        { 
            Items = new TabItemCollection(); 
            Items.Add(new SfTabItem { Content = new TabPage2().Content, Title = "Page1" }); 
            Items.Add(new SfTabItem { Content = new TabPage3().Content, Title = "Page2" }); 
            Items.Add(new SfTabItem { Content = new BackDropPage().Content, Title = "BacDropPage" }); 
 
        } 

Screenshot:



We have created sample based on this please find the sample from below,

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabviewSample167658398.zip

Please let us know if you have any other queries.

Regards,
Sakthivel P.




BI Billy October 24, 2020 11:03 AM UTC

Tried this method and it worked pretty well... except that I'm using prism and if I have a back button on any of the content pages in the tabbedview, it either doesn't work or crashes the app.


RS Ruba Shanmugam Syncfusion Team October 26, 2020 12:39 PM UTC

Hi Billy,

Thanks for the update.

While running the SfTabView inside the navigation with the Prism application, we are also getting crash on the Android platform. So we have fixed this issue and find the asembly from below.

Assembly: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabViewPrism_Exception-500997318

Assembly version : 18.3.0.42

Since 18.3.0.42 is a weekly NuGet release, we are not able to generate patch 18.3.0.42 version. We can generate patch only for Main release and SP1 release versions, so we have provided the custom assemblies in 18.3.0.42.

Disclaimer:
Please note that we have created this for version 18.3.0.42 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.

Please refer the below link for how to apply custom assemblies.
https://www.syncfusion.com/kb/8279/how-to-apply-the-custom-assemblies-when-configured-the-project-with-syncfusion-nuget

Fix for the reported issue will be included in our upcoming weekly NuGet release, which will be available on November 3rd, 2020.

Can you please check the provided fix with your application, and let us know whether the issue is resolved or not. Or if you are facing the crash issue in other platforms and let us share the details with replication sample it would be helpful for providing a better solution.


SP Sakthivel Palaniyappan Syncfusion Team November 4, 2020 06:10 AM UTC

Hi Billy,

Sorry for the inconvenience.

We don’t have weekly NuGet release for this week, due to Volume 3, SP1 release. We have included the fix in our Volume 3, 2020 SP1 release, which is expected to be rolled out on first week of November 2020. We will let you know once it gets rolled out.

Regards,
Sakthivel P.
 



SP Sakthivel Palaniyappan Syncfusion Team November 9, 2020 12:27 PM UTC

Hi Billy,

We are glad to announce that our Essential Studio 2020 Volume 3 Service Pack release v18.3.0.47  is rolled out and is available for download under the following link.

https://www.syncfusion.com/forums/159441/essential-studio-2020-volume-3-service-pack-release-v18-3-0-47-is-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sakthivel P.



ÖZ Özgür December 7, 2021 01:42 PM UTC

Hello.

Is there a sample application for "ContentPage support for TabItem"? If the application is available, can you share it?



SS Suganya Sethuraman Syncfusion Team December 9, 2021 06:25 AM UTC

Hi Özgür,

Greetings from Syncfusion.

We have analyzed your query. But in our current implementation there is no possible way to set the ContentPage as a SfTabItem ContentView. SfTabView is a content view control were each TabItem can hold a view of a ContentPage. We have also considered your request as a feature and already logged feature report for the same.

Feedback Link: https://www.syncfusion.com/feedback/1209/provide-content-page-support-for-sftabitem

This will be available in our any of our upcoming release. Please track the provided feedback link to know the status of the feature.

We would like to inform that you can set the content of content page to the SfTabItem as like in below KB.

KB Link: https://www.syncfusion.com/kb/11041/how-to-load-different-content-page-as-tab-items-content

Please get back us, if you have any concern.

Regards,

Suganya Sethuraman. 


Loader.
Up arrow icon