Class
ConnectionEditPointControl

Represents a manipulation point of a connection.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Primitives

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public class ConnectionEditPointControl : Control, IConnectionEditPoint, ISupportMouseOver

Inheritance: objectConnectionEditPointControl

Implements: IConnectionEditPointISupportMouseOver

Constructors

ConnectionEditPointControl()

Initializes a new instance of the ConnectionEditPointControl class.

Declaration

cs-api-definition
protected ConnectionEditPointControl()

ConnectionEditPointControl(ManipulationPointType, Point, RadDiagramConnection)

Initializes a new instance of the ConnectionEditPointControl class.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public ConnectionEditPointControl(ManipulationPointType type, Point position, RadDiagramConnection connection)

Parameters

type

ManipulationPointType

The type.

position

Point

The position.

connection

RadDiagramConnection

The connection.

Fields

PositionProperty

The Position dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PositionProperty

Field Value

DependencyProperty

TypeProperty

The Type dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TypeProperty

Field Value

DependencyProperty

Properties

Adorner

Gets the connection adorner in which this editor resides.

Declaration

cs-api-definition
public ConnectionManipulationAdorner Adorner { get; }

Property Value

ConnectionManipulationAdorner

Connection

Gets the underlying connection that's being manipulated by this editor.

Declaration

cs-api-definition
public IConnection Connection { get; }

Property Value

IConnection

Implements IConnectionEditPoint.Connection

IsConnected

Gets a value indicating whether this editor is connected to a shape.

Declaration

cs-api-definition
public bool IsConnected { get; }

Property Value

bool

True if this instance is connected; otherwise, false.

Remarks

This property only makes sense if the Type is either equal to First or to Last.

IsManipulating

Gets or sets a value indicating whether this editor is currently being used (moved).

Declaration

cs-api-definition
public virtual bool IsManipulating { get; set; }

Property Value

bool

True if this instance is manipulating; otherwise, false.

Implements IConnectionEditPoint.IsManipulating

Position

Gets or sets the position of this editor.

Declaration

cs-api-definition
public Point Position { get; set; }

Property Value

Point

Implements IConnectionEditPoint.Position

Type

Gets or sets this editor's type.

Declaration

cs-api-definition
public ManipulationPointType Type { get; set; }

Property Value

ManipulationPointType

Implements IConnectionEditPoint.Type

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsManipulatingChanged()

Called when IsManipulating property is changed.

Declaration

cs-api-definition
protected virtual void OnIsManipulatingChanged()

OnMouseEnter(MouseEventArgs)

Invoked when an unhandled  attached event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs that contains the event data.

OnMouseLeave(MouseEventArgs)

Invoked when an unhandled  attached event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseLeave(MouseEventArgs e)

Parameters

e

MouseEventArgs

The MouseEventArgs that contains the event data.

OnMouseLeftButtonDown(MouseButtonEventArgs)

Invoked when an unhandled  routed event is raised on this element. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

OnPositionChanged()

Called when position changes.

Declaration

cs-api-definition
protected virtual void OnPositionChanged()

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

UpdateDisplayElement()

Updates the displayed element.

Declaration

cs-api-definition
public void UpdateDisplayElement()

UpdateVisualStates()

Updates the visual states.

Declaration

cs-api-definition
protected virtual void UpdateVisualStates()