Exemple #1
0
        public void Select(GraphItemViewModel viewModelObject)
        {
            if (viewModelObject == null)
            {
                return;
            }

            InspectorViewModel.TargetViewModel = viewModelObject;

            if (viewModelObject.IsSelected)
            {
                return;
            }
            if (LastMouseEvent != null && LastMouseEvent.ModifierKeyStates != null && !LastMouseEvent.ModifierKeyStates.Alt)
            {
                DeselectAll();
            }

            viewModelObject.IsSelected = true;
            InvertApplication.SignalEvent <IGraphSelectionEvents>(
                _ => _.SelectionChanged(viewModelObject));
        }
 public GenericChildItemHeaderDrawer(GraphItemViewModel viewModelObject)
     : base(viewModelObject)
 {
 }
Exemple #3
0
 protected Drawer(GraphItemViewModel viewModelObject)
 {
     ViewModelObject = viewModelObject;
 }