private async void OnItemTapped(object sender, ItemTappedEventArgs e) { var selectedItem = ((ListView)sender).SelectedItem; var sampleCategory = (SampleCategory)selectedItem; await SamplesListFromCategoryPage.NavigateToCategory(sampleCategory, Navigation); }
public async void OnWidgetTapped(object sender, EventArgs e) { if (_processingTag) { return; } _processingTag = true; try{ await AnimateItem(this, animationDuration); await SamplesListFromCategoryPage.NavigateToCategory((SampleCategory)BindingContext, Navigation); }finally{ _processingTag = false; } }