Issues with missing support for EnableSwiping, VisibleHeaderCount, DisplayMode

Hello,
I am currently making migration for my app from Xamarin Forms to Maui but during the migration I saw that currently EnableSwiping, VisibleHeaderCount, DisplayMode are not supported. Therefore, I am looking for suggestion when they will be supported and what alternatives can you provide while these features are missing.
Regards,
Marian Hristov


1 Reply

BV Brundha Velusamy Syncfusion Team July 29, 2024 10:29 AM UTC

Hi Hristov, Marian,


Greetings from Syncfusion support!


Currently we do not have EnableSwiping, DisplayMode and VisibleHeaderCount support for .NET MAUI SfTabView. We have already received and created a feature requests for these features. Please find the below links for tracking the status of these features implementation.


Feedback links:


EnableSwiping:
Allow to switch tabs by swiping left or right in .NET MAUI | Feedback Portal (syncfusion.com)


DisplayMode:   https://www.syncfusion.com/feedback/50833/provide-a-displaymode-support-for-net-maui-sftabview


VisibleHeaderCountProvide support for adjustable visible tab item count in .NET MAUI SfTabView in .NET MAUI | Feedback Portal (syncfusion.com)


Please cast your vote to make it count. We will prioritize the features every release based on the demands, and we do not have an immediate plan to implement this feature since we have committed to already planned work. So, this feature will be available in any of our upcoming releases.


If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal. We will share the release details in the feedback itself.


Regarding VisibleHeaderCount,


At present, we would like to suggest you a workaround to hide and show tab items in a SfTabView using the 'IsVisible' property of 'SfTabItem.' We have created a sample demonstrating this approach. In the sample, we have included a SfTabView and a button. In the button's click event method, we have modified the 'IsVisible' property of the second tab item to control its visibility, as shown in the code snippet below. Please review the attached sample and let us know the details.


Code Snippet :

Mainpage.xaml 

 

<StackLayout>

    <tabView:SfTabView  x:Name="tabView">

        <tabView:SfTabView.Items >

            <tabView:SfTabItem x:Name="tab1"  Header="Call">

                <tabView:SfTabItem.Content>

                    <Label Text="Tab1" 

                      VerticalTextAlignment="Center"

                      HorizontalOptions="Center"

                           FontAttributes="Bold"/>

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

            <tabView:SfTabItem x:Name="tab2"  Header="Favorites">

               

                <tabView:SfTabItem.Content>

                    <Label Text="Tab2"

                      VerticalTextAlignment="Center"

                      HorizontalOptions="Center"

                           FontAttributes="Bold"/>

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

            <tabView:SfTabItem  x:Name="tab3" Header="Contacts">

                <tabView:SfTabItem.Content>

                    <Label Text="Tab3"

                      VerticalTextAlignment="Center"

                      HorizontalOptions="Center"

                           FontAttributes="Bold"/>

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

        </tabView:SfTabView.Items>

    </tabView:SfTabView>

    <Button Clicked="Button_Clicked" Text="Change Visible"/>

</StackLayout>

 

Mainpage.xaml.cs

 

private void Button_Clicked(object sender, EventArgs e)

{

    if(tab2.IsVisible)

    {

        tab2.IsVisible = false;

    }

    else

    {

        tab2.IsVisible = true;

    }

}


Feel free to contact us if you have any further questions or need additional assistance. We are here to help!


Regards,

Brundha V


Attachment: TabView_VisibleHeaderCount_bc9ce858.zip

Loader.
Up arrow icon