-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
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
Labels
No labels