private async void StackPannel_RightTapped(object sender, RightTappedRoutedEventArgs e) { var panel = sender as StackPanel; if (panel != null) { var model = panel.DataContext as FileModel; if (model != null) { await _fileViewModel.Delete(model); } } }
private void Delete(object sender, RoutedEventArgs e) { var select = savelist.SelectedItem as RecordsViewModel; model.Delete(select.Id); }