예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
        }