//public static ObservableCollection<Mascota> items { get; set; } public InicioPageDetail() { vm = new InicioPageViewModel(); this.BindingContext = vm; vm.DisplayError += () => DisplayAlert("Error", "No se pudo completar la acción.", "OK"); vm.DeleteSuccess += () => DisplayAlert("Info", "Borrado de Mascota Exitoso!", "OK"); //items = new ObservableCollection<Mascota>(); InitializeComponent(); }
public InicioPage() { InitializeComponent(); BindingContext = new InicioPageViewModel(); }