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

default constructor not found of type'MyClass'

$
0
0

Hi All,

I am trying to render a custom view from from xamarin.forms. When I try to render it from with following code

[assembly: ExportRenderer(typeof(SwipeableCard),typeof(CardContainer))] .

But an error throws like default constructor not found of type 'Com.andtinde.CardContainer' . I guess it is because the card container does not have a default constructor. And I cannot provide one because it inherits from Adapterview.

What I am doing wrong. Any help would be appriciated.


Viewing all articles
Browse latest Browse all 58056

Trending Articles