maui-demos icon indicating copy to clipboard operation
maui-demos copied to clipboard

SFListView Swiping is not working SfEffectsView

Open ryanlpoconnell opened this issue 5 months ago • 0 comments

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>

ryanlpoconnell avatar Jun 16 '25 14:06 ryanlpoconnell