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

ListView - System.MissingMethodException: Method not found:

$
0
0

I'm getting this when assigning a List<> to a ListView's ItemSource:

System.MissingMethodException: Method not found: 'Xamarin.Forms.ItemsView<Xamarin.Forms.Cell>.set_ItemsSource'.

I've used a similar setup in another project without problems, so I'm not sure why it is causing an issue here?

            ListView list = new ListView ();

            list.ItemsSource = Restaurants.Data;
            list.ItemTemplate = new DataTemplate (typeof(TextCell)) 
            { Bindings = {
                    { TextCell.TextProperty, new Binding("Name") }
                }
            };

Viewing all articles
Browse latest Browse all 58056

Trending Articles