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

Ambiguous Match Exception #13

Open
LukeTim opened this issue May 16, 2018 · 0 comments
Open

Ambiguous Match Exception #13

LukeTim opened this issue May 16, 2018 · 0 comments

Comments

@LukeTim
Copy link

LukeTim commented May 16, 2018

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant