Represents a manipulation point of a connection.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Primitives
Assembly:Telerik.Windows.Controls.Diagrams.dll
Syntax:
public class ConnectionEditPointControl : Control, IConnectionEditPoint, ISupportMouseOver
Inheritance: objectConnectionEditPointControl
Implements:
Constructors
Initializes a new instance of the ConnectionEditPointControl class.
protected ConnectionEditPointControl()
Initializes a new instance of the ConnectionEditPointControl class.
public ConnectionEditPointControl(ManipulationPointType type, Point position, RadDiagramConnection connection)
The type.
positionPointThe position.
connectionRadDiagramConnectionThe connection.
Fields
PositionProperty
DependencyProperty
The Position dependency property.
public static readonly DependencyProperty PositionProperty
TypeProperty
DependencyProperty
The Type dependency property.
public static readonly DependencyProperty TypeProperty
Properties
Gets the connection adorner in which this editor resides.
public ConnectionManipulationAdorner Adorner { get; }
Gets the underlying connection that's being manipulated by this editor.
public IConnection Connection { get; }
Implements:
Gets a value indicating whether this editor is connected to a shape.
public bool IsConnected { get; }
True if this instance is connected; otherwise, false.
This property only makes sense if the Type is either equal to First or to Last.
Gets or sets a value indicating whether this editor is currently being used (moved).
public virtual bool IsManipulating { get; set; }
True if this instance is manipulating; otherwise, false.
Implements:
Position
Point
Gets or sets the position of this editor.
public Point Position { get; set; }
Implements:
Gets or sets this editor's type.
public ManipulationPointType Type { get; set; }
Implements:
Methods
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when IsManipulating property is changed.
protected virtual void OnIsManipulatingChanged()
Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseEnter(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeave(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Invoked when an unhandled routed event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.
Called when position changes.
protected virtual void OnPositionChanged()
Resets the theme.
public void ResetTheme()
Updates the displayed element.
public void UpdateDisplayElement()
Updates the visual states.
protected virtual void UpdateVisualStates()