private void ExecuteDropCommand(object parameter)
        {
            var dragitem = (_dragItem as IClone <ITreeItemModel>).Clone();

            if (parameter is GroupModel)
            {
                dragitem.Parent = (parameter as IGroupModel);

                var lastchild = (parameter as GroupModel).Children.Any() ? (parameter as GroupModel).Children[(parameter as GroupModel).Children.Count - 1] : null;
                //set the center Yposition in item
                dragitem.Y = (lastchild?.Y ?? 0.0) + (lastchild?.Interval ?? 0.0) / 2 + dragitem.Interval / 2;


                (parameter as GroupModel).Children.Add(dragitem);

                (parameter as GroupModel).RefreshByExtended();
            }

            _dragItem = null;
        }
        private void ExecuteDragLineCommand(ProfileConnectorModel parameter)
        {
            _dragItem = parameter;

            System.Diagnostics.Debug.WriteLine($"   _dragItem.Y - {_dragItem.Y} ");
        }
 private bool CanExecuteDragCommand(ITreeItemModel parameter)
 {
     return(true);
 }
 private void ExecuteDragCommand(ITreeItemModel parameter)
 {
     _dragItem = (parameter as IClone <ITreeItemModel>).Clone();
 }