type CardContentView not found in xmlns http://xamarin.com/schemas/2014/forms ”

DeveloperOne.2062DeveloperOne.2062 USMember
edited January 2016 in Xamarin.Forms

Hi

I need to use James Montemagno’s developted CardContentView in Xaml of xamarin.form.
I added in xamal as a reference

xmlns:CardContentView=”clr-namespace:Articap.ProjectW.MobileApp.Views;assembly=Articap.ProjectW.MobileApp”   

and this is some part of my xaml

  <RelativeLayout  x:Name="relative"...>
     <ListView  x:Name="lstView"  HasUnevenRows="True" ....>
         <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
            <CardContentView.CardContentView Padding="40" CornderRadius = "10">
                 <StackLayout BackgroundColor="#FFFFFF" Padding="10,10,10,10">
                    <Label  Text = "{Binding Name}" TextColor="#727272" />
                        ....

                 </StackLayout>
            </CardContentView.CardContentView>
                </ViewCell>
        </DataTemplate>
            </ListView.ItemTemplate>
      </ListView>
   </RelativeLayout>

when I run my project I get error "type CardContentView .CardContentView not found in xmlns http://xamarin.com/schemas/2014/forms ”.
I should mention that my project build successfully, when I remove CardContentView form xamal and also
The CardContentView class works well when I develop a page from code.

someone has any idea how to solve this problem.

Thanks

Best Answer

Answers

  • @adamkemp Thank you so much for finding my mistake.

Sign In or Register to comment.