Skip to content

SFListView Swiping is not working SfEffectsView #56

@ryanlpoconnell

Description

@ryanlpoconnell

When the SfListView.ItemTemplate uses SfEffectsView, The SfListView.StartSwipeTemplate and SfListView.EndSwipeTemplate does not work.

I am testing this specifically on Android Maui.

Expected: StartSwipeTemplate is shown when swiping when using SfEffectsView in SfListView.ItemTemplate

Actual: StartSwipeTemplate is NOT shown when swiping when using SfEffectsView in SfListView.ItemTemplate

Note that removing the SfEffectsView tag results in the start and end swipe working again.

The following example code results in the incorrect behaviour specified.

SAMPLE CODE

<syncfusion:SfListView x:Name="listView" Grid.Row="1" ScrollBarVisibility="Never"
                               ItemSize="60"
                               AllowSwiping="True"
                               ItemsSource="{Binding ToDoList}"
                               ItemTapped="listView_ItemTapped"
                               SelectionMode="None">
            <syncfusion:SfListView.ItemTemplate>
                <DataTemplate>
                    <core:SfEffectsView  RippleBackground="Orange">
                            <Grid ColumnDefinitions="Auto,*">
                               <BoxView Grid.Column="0" Color="Brown" WidthRequest="30" VerticalOptions="Fill">
                                   <!-- Icons etc go in this column -->
                               </BoxView>
                                    <Grid  Grid.Column="1" BackgroundColor="BlueViolet">
                                        <Label  Text="{Binding Name}" HorizontalOptions="Fill" VerticalOptions="Fill" />
                                    </Grid>
                            </Grid>
                    </core:SfEffectsView>
                </DataTemplate>
            </syncfusion:SfListView.ItemTemplate>
            <syncfusion:SfListView.StartSwipeTemplate>
                <DataTemplate>
                    <Grid x:Name="rightGrid" Background="Azure">

                    </Grid>
                </DataTemplate>
            </syncfusion:SfListView.StartSwipeTemplate>
            <syncfusion:SfListView.EndSwipeTemplate>
                <DataTemplate>

                    <Grid x:Name="leftGrid" Background="Aquamarine">

                    </Grid>
                </DataTemplate>
            </syncfusion:SfListView.EndSwipeTemplate>
        </syncfusion:SfListView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions