we are create new New Project in vs2019
xamarin.forms with Master Details(android & Ios) also creating the grid view but when i run the project and click on the GridListPage we getting the error

my code is below kindly suggest us where is the wrong
GridListPage.xaml
- "1.0" encoding="utf-8" ?>
"http://xamarin.com/schemas/2014/forms" - xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="CollectionViewSample.Views.GridListPage"
- xmlns:vm="clr-namespace:CollectionViewSample.ViewModels"
- Title="{Binding Title}">
-
-
-
-
-
"CV" ItemsSource="{Binding DataSource}" VerticalOptions="Center" HorizontalOptions="Center" Margin="10,0,10,0"> -
-
"Vertical" Span="2"/> -
-
"vm:GridListViewModel" > - "LightGray" CornerRadius="3" HasShadow="False">
-
-
-
"Auto" /> -
"100" /> -
-
"Auto" /> -
"*" /> -
"0" Source="person" Aspect="Fill"/> -
"1" > - HorizontalOptions="EndAndExpand" VerticalOptions="CenterAndExpand"/>
GridListViewModel.cs
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace CollectionViewSample.ViewModels
- {
- public class GridListViewModel : BaseViewModel
- {
- public GridListViewModel()
- {
- Title = "Grid List View";
- }
- }
- }
GridListPage.xaml.cs
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace CollectionViewSample.Views
- {
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class GridListPage : ContentPage
- {
- public List<string> DataSource { get; }
- public GridListPage()
- {
- InitializeComponent();
- DataSource = new List<string>
- {
- "Alan",
- "Betty",
- "Charles",
- "David",
- "Edward",
- "Francis",
- "Gary",
- "Helen",
- "Ivan",
- "Joel",
- "Kelly",
- "Larry",
- "Mary",
- "Nancy",
- "Olivia",
- "Peter",
- "Quincy",
- "Robert",
- "Stephen",
- "Timothy",
- "Ursula",
- "Vincent",
- "William",
- "Xavier",
- "Yvonne",
- "Zack"
- };
- CV.BindingContext = this;
- }
- }
- }

Logesh PalaniPosted Jul 20, 2019, 11:40 PM
Pratik ShirsePosted Jul 1, 2019, 4:35 AM
Rajanikant HawaldarPosted Jul 1, 2019, 4:17 AM