Class DockPort
Represents a series of points act as the connection points of node and allows to create connections.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class DockPort : ConnectorBase, IDockPortView, IView, IDockPort, IPort, IDiagramElement, IID, INotifyPropertyChanged, IConnectorBase
Constructors
DockPort()
Initializes a new instance of the DockPort class.
Declaration
public DockPort()
Fields
ConnectionDirectionProperty
Using a DependencyProperty as the backing store for ConnectionDirection. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ConnectionDirectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ConnectorPaddingProperty
Using a DependencyProperty as the backing store for ConnectorPadding. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ConnectorPaddingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ConstraintsProperty
Using a DependencyProperty as the backing store for Constraints. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ConstraintsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IDProperty
Using a DependencyProperty as the backing store for ID. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty IDProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsConnectingProperty
Using a DependencyProperty as the backing store for IsDragConnectionOver. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty IsConnectingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NodeProperty
Using a DependencyProperty as the backing store for Node. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty NodeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PortVisibilityProperty
Using a DependencyProperty as the backing store for PortVisibility. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty PortVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShapeProperty
Using a DependencyProperty as the backing store for Shape. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ShapeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShapeStyleProperty
Using a DependencyProperty as the backing store for ShapeStyle. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty ShapeStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnitHeightProperty
Using a DependencyProperty as the backing store for UnitHeight. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty UnitHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnitWidthProperty
Using a DependencyProperty as the backing store for UnitWidth. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty UnitWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BoundingRectangle
Gets or sets the bounding rectangle of the DockPort.
Declaration
public Rect BoundingRectangle { get; }
Property Value
Type |
---|
System.Windows.Rect |
ConnectionDirection
Gets or sets the direction of connected connector.
Declaration
public ConnectionDirection ConnectionDirection { get; set; }
Property Value
Type |
---|
ConnectionDirection |
ConnectorPadding
Gets or sets the space to be left between the port bounds and its incoming and outgoing connections.
Declaration
public double ConnectorPadding { get; set; }
Property Value
Type |
---|
System.Double |
Constraints
Gets or sets whether connections can be created with the port.
Declaration
public PortConstraints Constraints { get; set; }
Property Value
Type |
---|
PortConstraints |
ID
Gets or sets the ID of the Connector
Declaration
public object ID { get; set; }
Property Value
Type |
---|
System.Object |
Info
Gets or sets the info of the DockPort.
Declaration
public object Info { get; set; }
Property Value
Type |
---|
System.Object |
IsConnecting
Using a DependencyProperty to check whether connection is establishing or not
Declaration
public bool IsConnecting { get; set; }
Property Value
Type |
---|
System.Boolean |
Node
Gets or sets the Node of the DockPort.
Declaration
public object Node { get; set; }
Property Value
Type |
---|
System.Object |
PortVisibility
Gets or sets when the Port should be visible.
Declaration
public PortVisibility PortVisibility { get; set; }
Property Value
Type |
---|
PortVisibility |
Shape
Gets or sets the shape of the dockport.
Declaration
public object Shape { get; set; }
Property Value
Type |
---|
System.Object |
ShapeStyle
Gets or sets the style of the dockport.
Declaration
public Style ShapeStyle { get; set; }
Property Value
Type |
---|
System.Windows.Style |
UnitHeight
Gets or sets the height of the port.
Declaration
public double UnitHeight { get; set; }
Property Value
Type |
---|
System.Double |
UnitWidth
Gets or sets the width of the port.
Declaration
public double UnitWidth { get; set; }
Property Value
Type |
---|
System.Double |
Methods
ArrangeOverride(Size)
Method to arrange DockPort class elements to given size.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | Size to arrange elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | Return size. |
Overrides
CanConnect()
Create Virtual method to Set condition for Visible the Port.
Declaration
public virtual bool CanConnect()
Returns
Type | Description |
---|---|
System.Boolean | returns true means its displays ports visibility. |
MeasureOverride(Size)
Method to measure size of DockPort class elements.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | Size to be measure. |
Returns
Type | Description |
---|---|
System.Windows.Size | Return measured size. |
Overrides
OnApplyTemplate()
Override Template from its base class
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |