private void AssociatedObjectOnIsCheckModeActiveChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            if (!e.CheckBoxesVisible || e.TappedItem == null || !AddTappedItemOnOpen)
            {
                return;
            }

            if (SelectedItems == null)
            {
                SelectedItems = new ObservableCollection <T>();
            }

            var item = e.TappedItem as T;

            if (item == null)
            {
                return;
            }

            if (!SelectedItems.Contains(item))
            {
                SelectedItems.Add(item);
            }

            AssociatedObject.CheckedItems.Add(item);
        }
        private void OnCheckModeChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            // Needed on every UI interaction
            SdkService.MegaSdkFolderLinks.retryPendingConnections();

            ChangeCheckModeAction(e.CheckBoxesVisible, (RadDataBoundListBox)sender, e.TappedItem);

            SetApplicationBarData();
        }
Exemple #3
0
        private void OnCheckModeChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            // Needed on every UI interaction
            App.MegaSdk.retryPendingConnections();

            ChangeCheckModeAction(e.CheckBoxesVisible, (RadJumpList)sender, e.TappedItem);

            SetApplicationBarData();
        }
Exemple #4
0
 private void ListBoxTags_IsCheckModeActiveChanged(object sender, IsCheckModeActiveChangedEventArgs e)
 {
     if (ListBoxTags.IsCheckModeActive)
     {
         ApplicationBar.Buttons.Remove(btnMultipleSelect);
         ApplicationBar.Buttons.Add(btnDelete);
     }
     else
     {
         ApplicationBar.Buttons.Remove(btnDelete);
         ApplicationBar.Buttons.Add(btnMultipleSelect);
     }
 }
        private void OnCheckModeChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            ChangeCheckModeAction(e.CheckBoxesVisible, (RadDataBoundListBox)sender, e.TappedItem);

            Dispatcher.BeginInvoke(SetApplicationBarData);
        }