void HeadDrag(EventCallBack eventCall, UserAction action, Vector2 v) { if (!layout.LockLayout) { if (ac == 0) { float y = action.CanPosition.y - eventCall.RawPosition.y; if (y < -30 | y > 30) { layout.ShowAllDocker(); ac = 2; //layout.DragAuxiliary = auxiliary; //layout.DragContent = this; } } else if (ac == 2) { layout.Draging(action); } } }
void HeadDrag(UserEvent eventCall, UserAction action, Vector2 v) { if (!layout.LockLayout) { if (ac == 0) { float y = action.CanPosition.y - eventCall.RawPosition.y; if (y < -30 | y > 30) { layout.ShowAllDocker(); ac = 2; layout.DragAuxiliary = this; layout.DragContent = eventCall.DataContext as ItemContent; } } else if (ac == 2) { layout.Draging(action); } } }