可以把连线从节点上拖下来,并且依附上去。

This commit is contained in:
艾竹
2023-05-03 13:28:16 +08:00
parent 1536e5018d
commit ed22b9daa3
13 changed files with 352 additions and 79 deletions

View File

@@ -21,12 +21,18 @@ namespace AIStudio.Wpf.DiagramDesigner.Controls
private void DragThumb_DragStarted(object sender, DragStartedEventArgs e)
{
if (this.DataContext is ConnectorPointModel point)
{
point.DragStart = true;
}
}
private void DragThumb_DragCompleted(object sender, DragCompletedEventArgs e)
{
if (this.DataContext is ConnectorPointModel point)
{
point.DragStart = false;
}
}
void DragThumb_DragDelta(object sender, DragDeltaEventArgs e)