Beispiel #1
0
 private void SelectionOnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     CreateGroupCommand.RaiseCanExecuteChanged();
     AddToGroupCommand.RaiseCanExecuteChanged();
     UngroupCommand.RaiseCanExecuteChanged();
     PinToNodeCommand.RaiseCanExecuteChanged();
 }
Beispiel #2
0
 private void SelectionOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     CreateGroupCommand.RaiseCanExecuteChanged();
     AddToGroupCommand.RaiseCanExecuteChanged();
     UngroupCommand.RaiseCanExecuteChanged();
     ToggleIsFrozenCommand.RaiseCanExecuteChanged();
     RaisePropertyChanged("IsFrozenExplicitly");
     RaisePropertyChanged("CanToggleFrozen");
 }
Beispiel #3
0
        private void SelectedItems_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            if (SelectedItems.Count == 1)
            {
                SelectedItem = SelectedItems.First();
            }
            else
            {
                SelectedItem = null;
            }

            CopyCommand.RaiseCanExecuteChanged();
            CutCommand.RaiseCanExecuteChanged();
            PasteCommand.RaiseCanExecuteChanged();
            CreateGroupCommand.RaiseCanExecuteChanged();
            MoveToGroupCommand.RaiseCanExecuteChanged();
            CreateNodeCommand.RaiseCanExecuteChanged();
        }
Beispiel #4
0
 private void SelectionOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     CreateGroupCommand.RaiseCanExecuteChanged();
     AddToGroupCommand.RaiseCanExecuteChanged();
     UngroupCommand.RaiseCanExecuteChanged();
 }