ClassConnectionEditPointControl
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
ConnectionEditPointControl()
Initializes a new instance of the ConnectionEditPointControl class.
Declaration
protected ConnectionEditPointControl()
ConnectionEditPointControl(ManipulationPointType, Point, RadDiagramConnection)
Initializes a new instance of the ConnectionEditPointControl class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public ConnectionEditPointControl(ManipulationPointType type, Point position, RadDiagramConnection connection)
Parameters
type
The type.
position
Point
The position.
connection
The connection.
Fields
PositionProperty
The Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
DependencyProperty
TypeProperty
The Type dependency property.
Declaration
public static readonly DependencyProperty TypeProperty
Field Value
DependencyProperty
Properties
Adorner
Gets the connection adorner in which this editor resides.
Declaration
public ConnectionManipulationAdorner Adorner { get; }
Property Value
Connection
Gets the underlying connection that's being manipulated by this editor.
Declaration
public IConnection Connection { get; }
Property Value
Implements
IsConnected
Gets a value indicating whether this editor is connected to a shape.
IsManipulating
Gets or sets a value indicating whether this editor is currently being used (moved).
Declaration
public virtual bool IsManipulating { get; set; }
Property Value
True if this instance is manipulating; otherwise, false.
Implements
Position
Gets or sets the position of this editor.
Declaration
public Point Position { get; set; }
Property Value
Point
Implements
Type
Gets or sets this editor's type.
Declaration
public ManipulationPointType Type { get; set; }
Property Value
Implements
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsManipulatingChanged()
Called when IsManipulating property is changed.
Declaration
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
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
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
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
protected virtual void OnPositionChanged()
UpdateDisplayElement()
Updates the displayed element.
Declaration
public void UpdateDisplayElement()
UpdateVisualStates()
Updates the visual states.
Declaration
protected virtual void UpdateVisualStates()