private async void Button_Clicked_2(object sender, EventArgs e) { var btn = sender as Button; var item = btn.BindingContext as Recept; FavoritiViewModel model = new FavoritiViewModel(); model.r = item; await model.Init(); }
public FavoritiPage() { InitializeComponent(); BindingContext = model = new FavoritiViewModel(); }