New to Telerik UI for WPFStart a free 30-day trial

Abstract base implementation of the IShape interface.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public abstract class RadDiagramShapeBase : RadDiagramItem, IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation

Inheritance: objectRadDiagramItemRadDiagramShapeBase

Derived Classes: RadDiagramContainerShapeRadDiagramShapeRadDiagramTextShape

Implements: ICollapsibleIContainerChildIDiagramItemIGroupableIPropertyChangedISerializableIShapeISupportManipulationISupportMouseOverISupportRotationISupportVirtualization...

Inherited Members RadDiagramItem.ZIndexPropertyRadDiagramItem.IsSelectedPropertyRadDiagramItem.PositionPropertyRadDiagramItem.IsInEditModePropertyRadDiagramItem.IsEditablePropertyRadDiagramItem.EditTemplatePropertyRadDiagramItem.StrokePropertyRadDiagramItem.StrokeThicknessPropertyRadDiagramItem.StrokeDashArrayPropertyRadDiagramItem.GroupPropertyRadDiagramItem.IsResizingEnabledPropertyRadDiagramItem.IsRotationEnabledPropertyRadDiagramItem.IsDraggingEnabledPropertyRadDiagramItem.IsConnectorsManipulationEnabledPropertyRadDiagramItem.IsManipulationAdornerVisiblePropertyRadDiagramItem.AllowDeletePropertyRadDiagramItem.AllowCutPropertyRadDiagramItem.AllowCopyPropertyRadDiagramItem.AllowPastePropertyRadDiagramItem.PreviewBeginEditEventRadDiagramItem.BeginEditEventRadDiagramItem.PreviewEndEditEventRadDiagramItem.EndEditEventRadDiagramItem.RefreshIsSelectedInGroup()RadDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)RadDiagramItem.OnPropertyChanged(string)RadDiagramItem.OnIsEditableChanged(bool, bool)RadDiagramItem.OnIsSelectedChanged(bool, bool)RadDiagramItem.OnZIndexChanged(int, int)RadDiagramItem.OnSizeChanged(Size, Size)RadDiagramItem.OnGroupNameChanged()RadDiagramItem.OnStrokeThicknessChanged()RadDiagramItem.OnPositionCoerced(Point)RadDiagramItem.OnIsConnectorsManipulationEnabledChanged(bool, bool)RadDiagramItem.OnCreateAutomationPeer()RadDiagramItem.IsSelectedRadDiagramItem.ParentGroupRadDiagramItem.ParentContainerRadDiagramItem.IsInEditModeRadDiagramItem.IsEditableRadDiagramItem.ZIndexRadDiagramItem.PositionRadDiagramItem.XRadDiagramItem.YRadDiagramItem.BoundsRadDiagramItem.IsDynamicRadDiagramItem.IdRadDiagramItem.EditTemplateRadDiagramItem.StrokeRadDiagramItem.StrokeThicknessRadDiagramItem.StrokeDashArrayRadDiagramItem.IsRotationEnabledRadDiagramItem.IsResizingEnabledRadDiagramItem.IsDraggingEnabledRadDiagramItem.IsConnectorsManipulationEnabledRadDiagramItem.IsManipulationAdornerVisibleRadDiagramItem.AllowDeleteRadDiagramItem.AllowCutRadDiagramItem.AllowCopyRadDiagramItem.AllowPasteRadDiagramItem.IsSelectedInGroupRadDiagramItem.DiagramRadDiagramItem.ServiceLocatorRadDiagramItem.ActualSizeRadDiagramItem.IsServiceManipulationRadDiagramItem.PropertyChangedRadDiagramItem.ParentGroupChangedRadDiagramItem.PreviewBeginEditRadDiagramItem.BeginEditRadDiagramItem.PreviewEndEditRadDiagramItem.EndEdit...

Constructors

Initializes a new instance of the RadDiagramShapeBase class.

C#
protected RadDiagramShapeBase()

Fields

ConnectorsProperty

DependencyProperty

Identifies the ConnectorsProperty dependency property.

C#
public static readonly DependencyProperty ConnectorsProperty

ConnectorStyleProperty

DependencyProperty

Identifies the ConnectorStyle dependency property.

C#
public static readonly DependencyProperty ConnectorStyleProperty

GlidingStyleProperty

DependencyProperty

Identifies the GlidingStyle dependency property.

C#
public static readonly DependencyProperty GlidingStyleProperty

Identifies the IsActiveConnectionInside dependency property.

C#
public static readonly DependencyProperty IsActiveConnectionInsideProperty

RotationAngleProperty

DependencyProperty

Identifies the RotationAngle dependency property.

C#
public static readonly DependencyProperty RotationAngleProperty

Identifies the UseDefaultConnectors dependency property.

C#
public static readonly DependencyProperty UseDefaultConnectorsProperty

UseGlidingConnectorProperty

DependencyProperty

Identifies the UseGlidingConnector dependency property.

C#
public static readonly DependencyProperty UseGlidingConnectorProperty

Properties

Gets the actual bounds.

C#
public Rect ActualBounds { get; }

Implements: ISupportRotation.ActualBounds

Gets the connectors of this shape.

C#
public ConnectorCollection Connectors { get; }

Implements: IShape.Connectors

Gets or sets the connector style.

C#
public Style ConnectorStyle { get; set; }
Property Value:

The connector style.

Gets or sets the style of outline the gliding connection should follow.

C#
public GlidingStyle GlidingStyle { get; set; }
Remarks:

This property has only an effect if the UseGlidingConnector is set to true.

Gets the incoming links.

C#
public IEnumerable<IConnection> IncomingLinks { get; }
Property Value:

The incoming links.

Implements: IShape.IncomingLinks

Gets the outgoing links.

C#
public IEnumerable<IConnection> OutgoingLinks { get; }
Property Value:

The outgoing links.

Implements: IShape.OutgoingLinks

Gets or sets the rotation angle.

C#
public double RotationAngle { get; set; }
Property Value:

The rotation angle.

Implements: ISupportRotation.RotationAngle

Transform

TransformGroup

Gets the transform.

C#
protected TransformGroup Transform { get; }

Gets or sets whether the default connectors should be defined on the shape.

C#
public bool UseDefaultConnectors { get; set; }

Gets or sets whether the gliding connector should be defined on the shape.

C#
public bool UseGlidingConnector { get; set; }

Methods

Deserializes the serialization info in this diagram entity.

C#
public override void Deserialize(SerializationInfo info)
Parameters:infoSerializationInfo

A SerializationInfo instance.

Overrides: RadDiagramItem.Deserialize(SerializationInfo)

Implements: ISerializable.Deserialize(SerializationInfo)

Gets the XML representation of this shape.

C#
public string GetXml()
Returns:

string

Remarks:

This is based on the Serialize() method; if you wish to alter the returned XML you need to override that method.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

C#
public override void OnApplyTemplate()

Overrides: RadDiagramItem.OnApplyTemplate()

Called when IsInEditMode changes.

C#
protected override void OnIsInEditModeChanged(bool oldIsInEditMode, bool isInEditMode)
Parameters:oldIsInEditModebool

The old value of the property.

isInEditModebool

The current value of the property.

Overrides: RadDiagramItem.OnIsInEditModeChanged(bool, bool)

Called when position changes.

C#
protected override void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters:oldPositionPoint

The old position.

newPositionPoint

The new position.

Overrides: RadDiagramItem.OnPositionChanged(Point, Point)

Called when the rotation angle has changed.

C#
protected virtual void OnRotationAngleChanged(double newValue, double oldValue)
Parameters:newValuedouble

The new value.

oldValuedouble

The old value.

Serializes this instance.

C#
public override SerializationInfo Serialize()
Returns:

SerializationInfo

Overrides: RadDiagramItem.Serialize()

Implements: ISerializable.Serialize()

Updates the visual states.

C#
protected override void UpdateVisualStates()

Overrides: RadDiagramItem.UpdateVisualStates()