-
-
Notifications
You must be signed in to change notification settings - Fork 286
连接器概述
miroiu edited this page Jun 22, 2024
·
1 revision
连接器通过引发PendingConnectionStartedEvent事件来创建预备连接。连接器具有一个必须绑定的Anchor依赖属性,以便在节点位置更改时实时更新它们之间的连接。IsConnected依赖属性必须设置为true,以接收Anchor更新。
按住ALT并点击连接器会触发DisconnectCommand。
NodeInput和NodeOutput是带有Header的Connector的实现,可以通过自定义HeaderTemplate来显示文本或输入框。它们还公开了一个ConnectorTemplate来自定义连接器本身。通常,它们与Node.InputConnectorTemplate和Node.OutputConnectorTemplate一起使用。
