mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-06 17:26:35 +08:00
可以把连线从节点上拖下来,并且依附上去。
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user