UWP

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PortBase - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PortBase

    Define the base calss of the Port.

    Inheritance
    System.Object
    PortBase
    ConnectorPort
    NodePort
    Implements
    IPort
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public abstract class PortBase : ContentControl, IPort, IDiagramElement, IID, INotifyPropertyChanged

    Constructors

    PortBase()

    Initializes a new instance of the PortBase class.

    Declaration
    protected PortBase()

    Fields

    ConnectionDirectionProperty

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

    Declaration
    public static DependencyProperty ConnectionDirectionProperty
    Field Value
    Type Description
    Windows.UI.Xaml.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 Description
    Windows.UI.Xaml.DependencyProperty

    ConstraintsProperty

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

    Declaration
    public static DependencyProperty ConstraintsProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    DisplacementProperty

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

    Declaration
    public static DependencyProperty DisplacementProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    HitPaddingProperty

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

    Declaration
    public static readonly DependencyProperty HitPaddingProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    IDProperty

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

    Declaration
    public static DependencyProperty IDProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    IsConnectingProperty

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

    Declaration
    public static DependencyProperty IsConnectingProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    KeyProperty

    ///DependencyProperty ///

    Declaration
    public static DependencyProperty KeyProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    OffsetXProperty

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

    Declaration
    public static DependencyProperty OffsetXProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    OffsetYProperty

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

    Declaration
    public static DependencyProperty OffsetYProperty
    Field Value
    Type Description
    Windows.UI.Xaml.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 Description
    Windows.UI.Xaml.DependencyProperty

    ShapeProperty

    ///DependencyProperty ///

    Declaration
    public static DependencyProperty ShapeProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    ShapeStyleProperty

    ///DependencyProperty ///

    Declaration
    public static DependencyProperty ShapeStyleProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    UnitHeightProperty

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

    Declaration
    public static DependencyProperty UnitHeightProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    UnitWidthProperty

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

    Declaration
    public static DependencyProperty UnitWidthProperty
    Field Value
    Type Description
    Windows.UI.Xaml.DependencyProperty

    Properties

    BoundingRectangle

    Gets or sets the bounding rectangle of the Port.

    Declaration
    public Rect BoundingRectangle { get; }
    Property Value
    Type Description
    Windows.Foundation.Rect

    ConnectionDirection

    Gets or sets the connection direction of the connector.

    Declaration
    public ConnectionDirection ConnectionDirection { get; set; }
    Property Value
    Type Description
    ConnectionDirection

    ConnectorPadding

    Defines the space to be left between the Port bounds and its incoming and outgoing connections.

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

    Constraints

    Gets or sets the default behaviors of the Port.

    Declaration
    public PortConstraints Constraints { get; set; }
    Property Value
    Type Description
    PortConstraints

    Displacement

    Displace the NodePort.

    Declaration
    public Thickness Displacement { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Thickness

    HitPadding

    Defines the Range of the Port Connection

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

    ID

    Gets or sets the ID of the port.

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

    Info

    Set Info property to Port. It is used to get information about Connector connection with Port

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

    IsConnecting

    Gets or sets a value that indicates whether a port having a connecting state.

    Declaration
    public bool IsConnecting { get; set; }
    Property Value
    Type Description
    System.Boolean

    Key

    Gets or sets the key of the port.

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

    OffsetX

    Gets or sets the position of the port on X-Axis.

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

    OffsetY

    Gets or sets the position of the port on Y-Axis.

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

    PortVisibility

    Defines when the Port should be visible.

    Declaration
    public PortVisibility PortVisibility { get; set; }
    Property Value
    Type Description
    PortVisibility

    Shape

    Gets or sets the Shape of the port.

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

    ShapeStyle

    Gets or sets the ShapeStyle of the port.

    Declaration
    public Style ShapeStyle { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Style

    UnitHeight

    Defines the Width of the Port.

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

    UnitWidth

    Defines the Width of the Port.

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

    Methods

    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

    OnPropertyChanged(String)

    Set Virtual method to change the Property of Port

    Declaration
    protected virtual void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName

    Events

    PropertyChanged

    Occurs when a property value changes.

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

    Implements

    IPort
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved