public EventDetailPage(EventsItem _event) { InitializeComponent(); BindingContext = viewModel = new EventDetailModel(_event); viewModel.LoadDetailCommand.Execute(null); }
public EventDetailModel(EventsItem @event) { _event = @event; Title = _event.name; LoadDetailCommand = new Command(async() => await ExecuteLoadEventCommand()); }