Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <CollectionView
- x:Name="CarsList"
- ItemsSource="{Binding Cars}"
- SelectionMode="None">
- <CollectionView.ItemTemplate>
- <DataTemplate>
- <SwipeView>
- <SwipeView.RightItems>
- <SwipeItems Mode="Execute">
- <SwipeItem
- BackgroundColor="Red"
- Command="{Binding Source={x:Reference ListPage}, Path=BindingContext.DeleteCommand}"
- CommandParameter="{Binding .}"
- Text="Delete" />
- </SwipeItems>
- </SwipeView.RightItems>
- <local:CarView
- Padding="0,10,0,0"
- xct:TouchEffect.AnimationEasing="CubicInOut"
- xct:TouchEffect.Command="{Binding Source={x:Reference ListPage}, Path=BindingContext.PressedCommand}"
- xct:TouchEffect.CommandParameter="{Binding .}"
- xct:TouchEffect.LongPressCommand="{Binding Source={x:Reference ListPage}, Path=BindingContext.LongPressedCommand}"
- xct:TouchEffect.LongPressCommandParameter="{Binding .}"
- xct:TouchEffect.NativeAnimation="True"
- xct:TouchEffect.PressedScale="0.8" />
- </SwipeView>
- </DataTemplate>
- </CollectionView.ItemTemplate>
- </CollectionView>
- </ContentPage.Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement