Skip to content

[Bug] SwipeCardView does not display the list #85

@rehan-saleh

Description

@rehan-saleh

Description

SwipeCardView is not displaying the list to perform swipe/drag

Steps to reproduce

  1. Add reference to AP.MobileToolkit in xaml file:
xmlns:toolkit="clr-namespace:AP.MobileToolkit.Controls;assembly=AP.MobileToolkit"
  1. Add a list of items to bind with the view in SwipeCardViewPageViewModel:
ItemList = new ObservableRangeCollection<string>()
{
 "Item 1",
 "Item 2",
 "Item 3"
};
  1. Use SwipeCardView control in xaml page:
<toolkit:SwipeCardView ItemsSource="{Binding ItemList}" BackgroundColor="Red" SwipedCommand="{Binding OnSwipe}" SwipedCommandParameter="{Binding .}" DraggingCommand="{Binding OnDrag}" DraggingCommandParameter="{Binding .}" TopItem="{Binding .}">
	<toolkit:SwipeCardView.ItemTemplate>
		<DataTemplate>
			<ViewCell>
				<StackLayout Padding="20">
					<Label Text="{Binding .}" VerticalTextAlignment="Center" FontSize="Large"  FontAttributes="Bold" />
				</StackLayout>
			</ViewCell>
		</DataTemplate>
	</toolkit:SwipeCardView.ItemTemplate>
</toolkit:SwipeCardView>

Expected Behavior

A list of items should display on screen

Actual Behavior

No item displays on screen

Basic Information

  • Version with issue: AP.MobileToolkit - 3.0.0-ci
  • Xamarin.Forms version: 4.2.0.815419
  • IDE: Visual Studio 2019 Professional - Version 16.3.5

Reproduction Link

Project: ToolkitDemo
Branch: issues/51/Demo-Project-More-Controls

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions