Coder Social home page Coder Social logo

swipecards's People

Contributors

robinmanuelthiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swipecards's Issues

Use List of Views instead of Strings?

Hi Robin,
thanks for this cool plugin! I try to use a list of Views instead of just strings as I want to design my cards individually per card. Unfortunately I don't get it to work. Would it be possible to use a list of Views? How could I do that?
Many thanks in advance!

Nothing Display on Card

Hi,

I have added your plugin in my project. I can see cards and can swipe them but nothing is visible on cards. For example no label or any extra information is visible... any idea?

Live Run Current View - fail Xamarin.Forms Android

Live Player 1.3.117(617)
VS2017 Entreprise preview
Xamarin.Forms 2.5.0.121934 shared project
MainPage.xaml (elcome to Xamarin.Forms!)

Running the Live Player works (LP loads the ManPage.Xaml)
..but NOT the Live Run Current View (LP looses connetion and try to reconnect, fail)

I mean this is the Hello world page, and even that wont work.

Bug on Xamarin Live player

I tried to run the iOS sample on Visual Studio 15.4 with Xamarin Live player and it gave me this strange error. not sure if it's due to a limitation on the live player itself or some bug with the code. will confirm after I get access to the Mac after this weekend

snip_20171015174458

No direction In the Drag event

I need to show Like when the user will swipe the card to the right side(like tinder).
For this i have used the Dragged event.But i can't find any direction in this event?

What is the solution here??

Ambiguous Match Exception

I have installed the NuGet package and added the CardStackView to the default Xamarin.Forms App template under ItemsPage.xaml with the following piece of XAML

<swipecards:CardStackView
                x:Name="CardStackView"
                ItemsSource="{Binding Items}">
                <swipecards:CardStackView.ItemTemplate>
                    <DataTemplate>
                        <StackLayout Padding="10">
                            <Label Text="{Binding Text}" LineBreakMode="NoWrap" Style="{DynamicResource ListItemTextStyle}" FontSize="16" />
                            <Label Text="{Binding Description}" LineBreakMode="NoWrap" Style="{DynamicResource ListItemDetailTextStyle}" FontSize="13" />
                        </StackLayout>
                    </DataTemplate>
                </swipecards:CardStackView.ItemTemplate>
            </swipecards:CardStackView>

When I run the app, however, I get an Ambiguous Match Exception in the generated code ItemsPage.xaml.g.cs on the following line:

CardStackView = global::Xamarin.Forms.NameScopeExtensions.FindByName<global::SwipeCards.Controls.CardStackView>(this, "CardStackView");

I'm really unsure how to go about debugging this. Is it something I'm doing wrong? It seems, from the exception name, like the code is confused about which of two different objects it should be accessing...

Card does not show? - Android

When i build the demo on my android phone the card dont show on the screen. and when i click one of the swipe buttons an error message pops up. I cant read it. i hope you can help

Single card is not visible

Hello,
Thanks for your great component.
I have an issue when I have a single card.
I see cards only if I have 2 or more.

Marc

Cannot put more than one item on Card

Adding either an image or a label works by itself. But I am trying to add both an image and a text label per card. But it doesn't work for whatever reason. Here is an example:

<swipecards:CardStackView
          <swipecards:CardStackView
    x:Name="CardStackView"
    ItemsSource="{Binding Cards}"
    BackgroundColor="Gray"
    Margin="0,20,0,0"
    Swiped="CardStackView_Swiped">

    <!-- I am assuming an individual card string is represented by Binding -->
    <swipecards:CardStackView.ItemTemplate>
        <DataTemplate>
            <Image x:Name="PhotoImage"
                   Source="{Binding PhotoURL}"
                   VerticalOptions="Center" 
                   HorizontalOptions="Center"/>
        </DataTemplate>
        <DataTemplate>
            <Label x:Name="NameLabel"
                   Text="{Binding Name}" 
                   VerticalOptions="Center" 
                   HorizontalOptions="Center" />
        </DataTemplate>
    </swipecards:CardStackView.ItemTemplate>   
</swipecards:CardStackView>

And here is the error I get:

Position 29:18. Property ItemTemplate is null or is not IEnumerable

I am not a Xamarin Forms expert so perhaps I am missing something here. I would appreciate if you have any pointers for me or other examples I can reference.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.