menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ConnectorBase - API Reference

    Show / Hide Table of Contents

    Class ConnectorBase

    Represents a base class for Connector and DockPort classes.

    Inheritance
    System.Object
    ConnectorBase
    Connector
    DockPort
    Implements
    System.ComponentModel.INotifyPropertyChanged
    IConnectorBase
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public abstract class ConnectorBase : ContentControl, INotifyPropertyChanged, IConnectorBase

    Constructors

    ConnectorBase()

    Initializes a new instance of the ConnectorBase class.

    Declaration
    protected ConnectorBase()

    Fields

    ConnectorGeometryStyleProperty

    Using a DependencyProperty as the backing store for ConnectorGeometryStyle. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty ConnectorGeometryStyleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GeometryProperty

    Using a DependencyProperty as the backing store for Geometry. This enables animation, styling, binding, etc.

    Declaration
    public static DependencyProperty GeometryProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HitPaddingProperty

    Using a DependencyProperty as the backing store for HitPadding. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty HitPaddingProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    KeyProperty

    Using a DependencyProperty as the backing store for Key. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty KeyProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    PortsProperty

    Using a DependencyProperty as the backing store for Ports. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty PortsProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentsProperty

    Using a DependencyProperty as the backing store for Segments. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty SegmentsProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SourcePointProperty

    Using a DependencyProperty as the backing store for SourcePoint. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty SourcePointProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    TargetPointProperty

    Using a DependencyProperty as the backing store for TargetPoint. This enables animation, styling, binding, etc...

    Declaration
    public static DependencyProperty TargetPointProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    TransparentGeometryProperty

    Using a DependencyProperty as the backing store for TransparentGeometry. This enables animation, styling, binding, etc.

    Declaration
    public static DependencyProperty TransparentGeometryProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    ConnectorGeometryStyle

    Gets or sets the style of the connector.

    Declaration
    public Style ConnectorGeometryStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    Geometry

    Gets the Geometry that describes the shape of connector

    Declaration
    public PathGeometry Geometry { get; }
    Property Value
    Type Description
    System.Windows.Media.PathGeometry

    HitPadding

    Gets or sets the range of the connector selection.

    Declaration
    public double HitPadding { get; set; }
    Property Value
    Type Description
    System.Double

    Key

    Gets or sets the key of the Connector or DockPort.

    Declaration
    public object Key { get; set; }
    Property Value
    Type Description
    System.Object

    Ports

    Gets or sets a collection of objects where each object represents a IPort.

    Declaration
    public object Ports { get; set; }
    Property Value
    Type Description
    System.Object

    Segments

    Gets or sets a collection of objects where each object represents a segment.

    Declaration
    public object Segments { get; set; }
    Property Value
    Type Description
    System.Object

    SourcePoint

    Gets or sets the start point of the Connector or DockPort.

    Declaration
    public Point SourcePoint { get; set; }
    Property Value
    Type Description
    System.Windows.Point

    TargetPoint

    Gets or sets the end point of the Connector or DockPort.

    Declaration
    public Point TargetPoint { get; set; }
    Property Value
    Type Description
    System.Windows.Point

    Methods

    ArrangeOverride(Size)

    To arrange the ConnectorBase elements into given size.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    Gets size.

    Returns
    Type Description
    System.Windows.Size

    Returns size as empty.

    MeasureOverride(Size)

    To measure the ConnectorBase elements into given size.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    Gets size.

    Returns
    Type Description
    System.Windows.Size

    Returns size as empty.

    OnApplyTemplate()

    Method to apply template values to ConnectorBase class.

    Declaration
    public override void OnApplyTemplate()

    OnPropertyChanged(String)

    Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(name).

    Declaration
    protected virtual void OnPropertyChanged(string property)
    Parameters
    Type Name Description
    System.String property

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    IConnectorBase
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved