Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] SwipeCardView does not display the list #85

Open
rehan-saleh opened this issue Oct 21, 2019 · 0 comments
Open

[Bug] SwipeCardView does not display the list #85

rehan-saleh opened this issue Oct 21, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rehan-saleh
Copy link
Contributor

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

@rehan-saleh rehan-saleh added the bug Something isn't working label Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants