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
close icon

No access last tab

Hi,

Because I have 3 tabs and in the last one I can't access the with the click or with the swipe.

I enter my code to understand the problem.

    <ContentPage.Content>

        <tabView:SfTabView BackgroundColor="Transparent"

                           TabHeaderPosition="Bottom"

                           OverflowMode="Scroll"

                           DisplayMode="ImageWithText"

                           EnableSwiping="false"

                           VisibleHeaderCount="4">

            <tabView:SfTabView.SelectionIndicatorSettings>

                <tabView:SelectionIndicatorSettings

                    Color="#a72321"

                    Position="Top"

                    AnimationDuration="500"

                    StrokeThickness="2"/>

            </tabView:SfTabView.SelectionIndicatorSettings>

            <tabView:SfTabItem Title="Home" ImageSource="social">

                <tabView:SfTabItem.Content>

                    <syncfusion:SfListView x:Name="MyListView"

                                       ItemTapped="MyListView_ItemTapped"

                                       ListViewCachingStrategy="RecycleTemplate"

                                       AutoFitMode="DynamicHeight"

                                       SelectionMode="None"

                                       ItemsSource="{Binding PropertyClientis}">

                        <syncfusion:SfListView.ItemTemplate>

                            <DataTemplate x:DataType="local:PropertyClienti">

                                <border:SfBorder CornerRadius="0,10,0,10"

                                             BorderColor="white"

                                             HasShadow="True"

                                             Margin="5"

                                             BackgroundColor="white"

                                             HorizontalOptions="FillAndExpand"

                                             VerticalOptions="FillAndExpand">

                                    <Grid>

                                        <Grid.ColumnDefinitions>

                                            <ColumnDefinition Width="Auto"/>

                                            <ColumnDefinition Width="Auto"/>

                                            <ColumnDefinition Width="Auto"/>

                                        </Grid.ColumnDefinitions>

                                        <Grid.RowDefinitions>

                                            <RowDefinition Height="Auto"/>

                                            <RowDefinition Height="Auto"/>

                                            <RowDefinition Height="Auto"/>

                                        </Grid.RowDefinitions>

                                        <StackLayout Grid.Column="1" Grid.RowSpan="3" Orientation="Horizontal">

                                            <Image Source="social.png"

                                                   Grid.Column="0"

                                                   HeightRequest="32"

                                                   WidthRequest="32"

                                                   HorizontalOptions="StartAndExpand"

                                                   VerticalOptions="CenterAndExpand"/>

                                        </StackLayout>

                                        <StackLayout Grid.Column="2" Grid.Row="1" Orientation="Vertical" VerticalOptions="StartAndExpand">

                                            <Label TextColor="Black"

                                                           FontSize="13"

                                                           FontAttributes="Bold"

                                                           Text="{Binding Denominazione}"

                                                           HorizontalOptions="StartAndExpand"

                                                           VerticalOptions="Start"/>

                                            <Label x:Name="LbCf"

                                                           TextColor="Black"

                                                           FontSize="12"

                                                           Text="{Binding CdFc}"

                                                           HorizontalOptions="StartAndExpand"

                                                           VerticalOptions="Start"

                                                           IsVisible="true"/>

                                            <Label FontSize="12"

                                                           TextColor="Black"

                                                           Text="{Binding Email}"

                                                           HorizontalOptions="StartAndExpand"

                                                           VerticalOptions="Start"/>

                                        </StackLayout>

                                    </Grid>

                                </border:SfBorder>

                            </DataTemplate>

                        </syncfusion:SfListView.ItemTemplate>

                    </syncfusion:SfListView>

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

            <tabView:SfTabItem Title="Report" ImageSource="report">

                <tabView:SfTabItem.Content>

                    <Grid BackgroundColor="Green" />

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

            <tabView:SfTabItem Title="Notifiche" ImageSource="bell.png">

                <tabView:SfTabItem.Content>

                    <Grid BackgroundColor="Blue" />

                </tabView:SfTabItem.Content>

            </tabView:SfTabItem>

        </tabView:SfTabView>

    </ContentPage.Content>


TY



1 Reply

RS Ruba Shanmugam Syncfusion Team October 18, 2022 12:32 PM UTC

Hi Fabio,


We have prepared the sample based on the provided code snippet in SfTabView, but it will update the tab item properly based on the tab item click. We have prepared a sample for your reference and please get it from the attachments


We ask you to try our sample and if your requirement is different, please explain to us briefly and share the replication steps with the sample and the reported issue platform details. It will help us to provide the proper solution at the easiest.  Please let us know if you need any other details.


Regards,

Ruba Shanmugam


Attachment: TabView_ListView_Tap_479dcd95.zip

Loader.
Live Chat Icon For mobile
Up arrow icon