public DetalleTareaView() { InitializeComponent(); var item = new Tarea { Titulo = "Anuncio 1", Descripcion = "This is an item description." }; viewModel = new TareaDetalleViewModel(item); BindingContext = viewModel; }
public DetalleTareaView(TareaDetalleViewModel viewModel) { InitializeComponent(); BindingContext = this.viewModel = viewModel; }