using System.Collections.ObjectModel; using System.Globalization; using static BookApp.MainPage; namespace BookApp { public partial class ContentCollection : ContentView { public static readonly BindableProperty ItemsSourceProperty = BindableProperty.Create(nameof(ItemsSource), typeof(ObservableCollection), typeof(ContentCollection)); public ObservableCollection ItemsSource { get { return (ObservableCollection)GetValue(ItemsSourceProperty); } set { SetValue(ItemsSourceProperty, value); } } public ContentCollection() { InitializeComponent(); BindingContext = this; } } }