Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

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

$
0
0

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


Viewing all articles
Browse latest Browse all 91519

Trending Articles