private async void OnitemSelected(object sender, SelectedItemChangedEventArgs args) { var item = args.SelectedItem as Bug; if (item == null) { return; } BugDetailViewModel model = new BugDetailViewModel(item); model.Item.Priority = await $"{APIService._apiUrl}/bugs/priority/{item.Id}".GetStringAsync(); model.Item.Submitter = await $"{APIService._apiUrl}/bugs/submitter/{item.Id}".GetStringAsync(); await Navigation.PushModalAsync(new NavigationPage(new BugDetailPage(model))); // Manually deselect item. //ItemsListView.SelectedItem = null; }
public BugDetailPage(BugDetailViewModel viewModel) { InitializeComponent(); BindingContext = model = viewModel; }