skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadDiagramConnector

Represents a connector point.

Inheritance
System.Object
RadDiagramConnector
Namespace: Telerik.Windows.Controls.Diagrams
Assembly: Telerik.Windows.Controls.Diagrams.dll

Syntax

public class RadDiagramConnector : Control, IConnector, ISupportMouseOver, ICloneable, ISerializable, IThemable

Constructors

RadDiagramConnector()

Initializes a new instance of the RadDiagramConnector class.

Declaration
public RadDiagramConnector()

Fields

ActivationChangedEvent

Identifies the ConnectorActivated routed event.

Declaration
public static readonly RoutedEvent ActivationChangedEvent
Field Value
System.Windows.RoutedEvent

OffsetProperty

The Offset dependency property.

Declaration
public static readonly DependencyProperty OffsetProperty
Field Value
System.Windows.DependencyProperty

Properties

Offset

Gets or sets the offset of the top-left corner of the shape. A value of zero corresponds to the upper-left corner, while a value of one corresponds to the right side of the shape. Values outside the [0,1] range will position the connector outside the shape.

Declaration
public Point Offset { get; set; }
Property Value
System.Windows.Point

The connector's offset.

Implements
IConnector.Offset

Shape

Gets the associated shape.

Declaration
public IShape Shape { get; }
Property Value
IShape

Implements
IConnector.Shape

Methods

add_ActivationChanged(RadRoutedEventHandler)

Declaration
public void add_ActivationChanged(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

CalculateRelativePosition(Size)

Calculate the relative position of this connector.

Declaration
public virtual Point CalculateRelativePosition(Size shapeSize)
Parameters
System.Windows.Size shapeSize

Size of the shape.

Returns
System.Windows.Point

The desired position of the connector's center. This position is relative to the parent shape's (connectorsControl's) position.

Implements
IConnector.CalculateRelativePosition(Size)

Deserialize(SerializationInfo)

Deserializes the specified info.

Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
SerializationInfo info

The info.

Implements
ISerializable.Deserialize(SerializationInfo)

OnInitialized(EventArgs)

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

OnMouseEnter(MouseEventArgs)

Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

OnMouseLeave(MouseEventArgs)

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

OnOffsetChanged(Point, Point)

Called when [offset changed].

Declaration
protected virtual void OnOffsetChanged(Point oldOffset, Point newOffset)
Parameters
System.Windows.Point oldOffset

The old offset.

System.Windows.Point newOffset

The new offset.

remove_ActivationChanged(RadRoutedEventHandler)

Declaration
public void remove_ActivationChanged(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler value

Serialize()

Serializes this instance. Primitives like Background, Foreground, Stroke , Width, height are saved only if they are locally set. If they are set via style, we expect the style to be applied after save/load so there is no need to save them and load them. This is also done for performance reasons. Exception of this rule are the Name and Offset properties which can be used to define a custom connector and we do not expect them to be set in Style setter because Connectors do not provide MVVM support.

Declaration
public virtual SerializationInfo Serialize()
Returns
SerializationInfo

Implements
ISerializable.Serialize()

UpdateVisualStates()

Updates the visual states.

Declaration
protected virtual void UpdateVisualStates()

Events

ActivationChanged

Occurs when [connector activation changed].

Declaration
public event RadRoutedEventHandler ActivationChanged
Event Type
RadRoutedEventHandler

OffsetChanged

Occurs when [offset changed].

Declaration
public event EventHandler<OffsetEventArgs> OffsetChanged
Event Type
System.EventHandler<OffsetEventArgs>

Explicit Interface Implementations

IConnector.AbsolutePosition

Gets the absolute (actual or real) position.

Declaration
Point IConnector.AbsolutePosition { get; }
Returns
System.Windows.Point

The point where this connector's center is located on the diagram surface.

Implements
IConnector.AbsolutePosition

IConnector.IsActive

Gets or sets a value indicating whether this instance is active.

Declaration
bool IConnector.IsActive { get; set; }
Returns
System.Boolean

True if this instance is active; otherwise, false.

Implements
IConnector.IsActive

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.