Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DiagramQueryConnectionPointsEventArgs.ItemConnectionBorderState Property

Specifies whether to enable connection to an item and show a visual indication.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public ConnectionElementState ItemConnectionBorderState { get; set; }

#Property Value

Type Description
ConnectionElementState

A ConnectionElementState enumeration value.

Available values:

Name Description
Visible

Connection is enabled.

Hidden

Connection is disabled with no visual indication.

Disabled

Connection is disabled. Visual indication (red border around an item/connector) is shown.

#Remarks

The DiagramQueryConnectionPointsEventArgs.HoveredItem property returns the item hovered with the connection point that is being moved by the end-user.

Set the ItemConnectionBorderState property to either ConnectionElementState.Hidden or ConnectionElementState.Disabled to prevent the end-user from connecting to an item.

Use the DiagramQueryConnectionPointsEventArgs.ItemConnectionPointStates property to specify whether to enable connection to individual connection points and show a visual indication.

See Also