コード例 #1
0
        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);
        }
コード例 #2
0
        private void OnCheckModeChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            // Needed on every UI interaction
            SdkService.MegaSdkFolderLinks.retryPendingConnections();

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

            SetApplicationBarData();
        }
コード例 #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();
        }
コード例 #4
0
ファイル: ManageTags.xaml.cs プロジェクト: NPadrutt/Places
 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);
     }
 }
コード例 #5
0
        private void OnCheckModeChanged(object sender, IsCheckModeActiveChangedEventArgs e)
        {
            ChangeCheckModeAction(e.CheckBoxesVisible, (RadDataBoundListBox)sender, e.TappedItem);

            Dispatcher.BeginInvoke(SetApplicationBarData);
        }