-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
SwipeCardView is not displaying the list to perform swipe/drag
Steps to reproduce
- Add reference to AP.MobileToolkit in xaml file:
xmlns:toolkit="clr-namespace:AP.MobileToolkit.Controls;assembly=AP.MobileToolkit"
- Add a list of items to bind with the view in SwipeCardViewPageViewModel:
ItemList = new ObservableRangeCollection<string>()
{
"Item 1",
"Item 2",
"Item 3"
};
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working