添加block快,不需要连接线,直接吸附。

This commit is contained in:
艾竹
2023-05-21 22:06:59 +08:00
parent 2fd8321363
commit fde899cfa9
30 changed files with 680 additions and 338 deletions

View File

@@ -49,7 +49,7 @@ namespace AIStudio.Wpf.DiagramDesigner
//propertyChangedSubscription = WhenPropertyChanged.Where(o => o.ToString() == "Left" || o.ToString() == "Top" || o.ToString() == "ItemWidth" || o.ToString() == "ItemHeight").Subscribe(ChangeImageElement);
//connectorsChangedSubscription = WhenConnectorsChanged.Subscribe(OnConnectorsChanged);
AddItemCommand = new SimpleCommand(Command_Enable, ExecuteAddItemCommand);
AddCommand = new SimpleCommand(Command_Enable, ExecuteAddItemCommand);
ImageSwitchCommand = new SimpleCommand(Command_Enable, ExecuteImageSwitchCommand);
BuildMenuOptions();
}
@@ -82,7 +82,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
}
public ICommand AddItemCommand
public ICommand AddCommand
{
get; private set;
}
@@ -143,7 +143,7 @@ namespace AIStudio.Wpf.DiagramDesigner
// }
// }
// }
// else if (args.Action == NotifyCollectionChangedAction.Remove)
// else if (args.Action == NotifyCollectionChangedAction.Delete)
// {
// if (args.OldItems.Count > 0)
// {