Hello
I have a list of notebooks, that are display on a listview (using syncfusion)

this is the VM to take care of that
SelectedNoteBookCommand = new Command(async () => {
MessagingCenter.Send(this, "details", SelectedNotebook);
await Application.Current.MainPage.Navigation.PushAsync(new NotesPage());
SelectedNotebook = null;
});
GetNotebooksAsync();
}
private async void GetNotebooksAsync() {
var notebooks = await Database.ReadAsync<Notebook>();
if (notebooks != null) {
notebooks.Where(notebook => notebook.Id == App.UserId);
NotebooksCollection.Clear();
foreach (var item in notebooks) {
NotebooksCollection.Add(item);
}
}
}
so everything is perfect so far.
Now every notebook have several notes and each note has an id
What I am trying to do, is to use the Xamarin Messaging Center, to pass the entire Notebook, and get the Id
NotesCollection = new ObservableCollection<Note>();
MessagingCenter.Subscribe<NotebooksVM, Notebook>(this, "details", async (obj, item) => {
Notebook newNotebook = item;
var notes = await Database.ReadAsync<Note>();
if (notes != null) {
var notebookNotes = notes.Where(n => n.NotebookId == newNotebook.Id);
NotesCollection.Clear();
foreach (var element in notebookNotes) {
NotesCollection.Add(element);
}
}
});
but when I try to display the notes, I don see anything, but I can see the Messaging center receiving the note (Not every time though).
This is my XAML to display that, but I don't understand
<ContentPage.BindingContext>
<vm:NotesVM/>
</ContentPage.BindingContext>
<ContentPage.Content>
<StackLayout x:DataType="vm:NotesVM">
<syncfusion:SfListView x:Name="NoteBookLV"
AutoFitMode="Height"
ItemsSource="{x:Binding NotesCollection}">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate x:DataType="model:Note">
<Grid Padding="5" RowDefinitions="20,50">
<Label Text="{x:Binding CreatedAt, StringFormat='Created on: {0}'}"
FontAttributes="Bold"
BackgroundColor="Gray"/>
<StackLayout Grid.Row="1"
Orientation="Horizontal">
<Label Text="{x:Static fi:IconFonts.Note}"
FontFamily="material"
VerticalTextAlignment="Center"
FontSize="40"/>
<Label Text="{x:Binding Title,StringFormat='Name: {0}'}"
FontAttributes="Bold"
VerticalTextAlignment="Center"/>
</StackLayout>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
<Button Text="{x:Static fi:IconFonts.Plus}"
FontSize="30"
HorizontalOptions="EndAndExpand"
WidthRequest="50"
HeightRequest="50"
BorderWidth="2"
BorderColor="Gray"
CornerRadius="100"
Margin="30"
FontFamily="material"
VerticalOptions="End"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
then click the sign in button, navigate to the mainPage. 
