mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
添加block快,不需要连接线,直接吸附。
This commit is contained in:
@@ -565,8 +565,8 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
var connectors = Root?.Items.OfType<ConnectionViewModel>().Where(p => p.SinkConnectorInfoFully?.DataItem == this).ToList();
|
||||
|
||||
Root?.Remove(this);
|
||||
Root?.Remove(connectors);
|
||||
Root?.Delete(this);
|
||||
Root?.Delete(connectors);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -745,12 +745,11 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
{
|
||||
if (item != this)
|
||||
{
|
||||
item.IsSelected = false;
|
||||
item.RemoveFromSelection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Root.SelectedItems.Clear();
|
||||
IsSelected = selected;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user