private void ModPackButton_Drop(object sender, DragEventArgs e) { var relatePos = e.GetPosition(this); if (relatePos.X <= ActualWidth / 2) { DataDragDrop?.Invoke(this, new DataDragDropEventArgs(Direction.Left, e.Data)); } else { DataDragDrop?.Invoke(this, new DataDragDropEventArgs(Direction.Right, e.Data)); } ResetTipBorder(); }
private void ModResource_Drop(object sender, DragEventArgs e) { var relatePos = e.GetPosition(this); if (relatePos.Y <= ActualHeight / 2) { DataDragDrop?.Invoke(this, new DataDragDropEventArgs(Direction.Up, e.Data)); } else { DataDragDrop?.Invoke(this, new DataDragDropEventArgs(Direction.Down, e.Data)); } ResetTipBorder(); }