public CatalogueView()
 {
     InitializeComponent();
     BindingContext     = (ViewModel = new CatalogueViewModel());
     Favorites.Clicked += Favorite_Clicked;
     ToolbarItems.Add(Favorites);
     catalogueView = this;
 }
 private void FavoriteItem_Clicked(object sender, System.EventArgs e)
 {
     ViewModel.ToggleFavorite((added) =>
     {
         favoriteItem.Icon  = added ? "star.png" : "out_star.png";
         CatalogueView view = new CatalogueView();
         MessagingCenter.Send <CatalogueView, bool>(view, "Favorite", added);
     });
 }