private void OnSharedItemRightTapped(object sender, RightTappedRoutedEventArgs e) { IMegaSharedFolderNode itemTapped = ((FrameworkElement)e.OriginalSource)?.DataContext as IMegaSharedFolderNode; if (itemTapped == null) { return; } this.Contact.SharedItems.ItemCollection.FocusedItem = itemTapped; var view = (ListViewBase)sender; if (view == null) { return; } if (this.Contact.SharedItems.ItemCollection.IsMultiSelectActive) { view.SelectedItems?.Add(itemTapped); } else { view.SelectedItem = itemTapped; } }
private void OnSharedItemTapped(object sender, TappedRoutedEventArgs e) { IMegaSharedFolderNode itemTapped = ((FrameworkElement)e.OriginalSource)?.DataContext as IMegaSharedFolderNode; if (itemTapped == null) { return; } this.Contact.SharedItems.ItemCollection.FocusedItem = itemTapped; }