2X faster development
The ultimate WPF UI toolkit to boost your development speed.
The ValidateConnection is one of the PortVisibility which is used to achieve logical gates functionality in ports, and it controls over visibility of port based on the connector ends in WPF Diagram (SfDiagram).
The ValidateConnection virtual method is used to make decision on creating/editing the connection at runtime.
For example, InPort, OutPort, and number of connections to the port restriction is represented in the sample. Refer to the code example and sample as follows. C# // Validate the connection when connector endpoints are dragged protected override void ValidateConnection (ConnectionParameter args) { if (args.TargetPort is PortVM) { var port = args.TargetPort as PortVM; if (!port.CanCreateConnection(args.Connector as IConnector)) { args.TargetPort = null; } } base.ValidateConnection(args); }
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.