Class
RadDiagram

Represents the diagram control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Diagram")]
[Themable]
public class RadDiagram : Control, ISupportContainerGenerator<RadDiagramItem>, IGraphInternal, IGraph, ISerializable, ISupportManipulation

Inheritance: objectRadDiagram

Implements: IGraphIGraphInternalISerializableISupportContainerGenerator<RadDiagramItem>ISupportManipulation

Constructors

RadDiagram()

Initializes a new instance of the RadDiagram class.

Declaration

cs-api-definition
public RadDiagram()

Fields

ActiveToolProperty

Identifies the ActiveTool dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ActiveToolProperty

Field Value

DependencyProperty

AdditionalContentActivatedEvent

Identifies the AdditionalContentOpened routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent AdditionalContentActivatedEvent

Field Value

RoutedEvent

AllowCopyProperty

Identifies the AllowCopy dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowCopyProperty

Field Value

DependencyProperty

AllowCutProperty

Identifies the AllowCut dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowCutProperty

Field Value

DependencyProperty

AllowDeleteProperty

Identifies the AllowDelete dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowDeleteProperty

Field Value

DependencyProperty

AllowPasteProperty

Identifies the AllowPaste dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowPasteProperty

Field Value

DependencyProperty

AutoLayoutProperty

Identifies the AutoLayout dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutoLayoutProperty

Field Value

DependencyProperty

CommandExecutedEvent

Identifies the CommandExecuted routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent CommandExecutedEvent

Field Value

RoutedEvent

ConnectionBridgeProperty

Identifies the Position dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionBridgeProperty

Field Value

DependencyProperty

ConnectionDeserializedEvent

Identifies the ConnectionDeserialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ConnectionDeserializedEvent

Field Value

RoutedEvent

ConnectionEditTemplateProperty

Identifies the ConnectionEditTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionEditTemplateProperty

Field Value

DependencyProperty

ConnectionEditTemplateSelectorProperty

Identifies the ConnectionEditTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionEditTemplateSelectorProperty

Field Value

DependencyProperty

ConnectionManipulationCompletedEvent

Identifies the ConnectionManipulationCompleted routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ConnectionManipulationCompletedEvent

Field Value

RoutedEvent

ConnectionManipulationStartedEvent

Identifies the ConnectionManipulationStartedEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ConnectionManipulationStartedEvent

Field Value

RoutedEvent

ConnectionRoundedCornersProperty

Identifies the RoundedCorners dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionRoundedCornersProperty

Field Value

DependencyProperty

ConnectionSerializedEvent

Identifies the ConnectionSerialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ConnectionSerializedEvent

Field Value

RoutedEvent

ConnectionStyleProperty

Identifies the ConnectionStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionStyleProperty

Field Value

DependencyProperty

ConnectionStyleSelectorProperty

Identifies the ConnectionStyleSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionStyleSelectorProperty

Field Value

DependencyProperty

ConnectionTemplateProperty

Identifies the ConnectionTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionTemplateProperty

Field Value

DependencyProperty

ConnectionTemplateSelectorProperty

Identifies the ConnectionTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectionTemplateSelectorProperty

Field Value

DependencyProperty

ConnectorActivationChangedEvent

Identifies the ConnectorActivationChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ConnectorActivationChangedEvent

Field Value

RoutedEvent

ConnectorStyleProperty

Identifies the ConnectorStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ConnectorStyleProperty

Field Value

DependencyProperty

ContainerShapeStyleProperty

Identifies the ContainerShapeStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContainerShapeStyleProperty

Field Value

DependencyProperty

DeserializedEvent

Identifies the Deserialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent DeserializedEvent

Field Value

RoutedEvent

DiagramLayoutCompletedEvent

Identifies the DiagramLayoutComplete routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent DiagramLayoutCompletedEvent

Field Value

RoutedEvent

DisplayMemberPathProperty

Identifies the DisplayMemberPath dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayMemberPathProperty

Field Value

DependencyProperty

DragEvent

Identifies the DragEvent routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent DragEvent

Field Value

RoutedEvent

GraphSourceProperty

Identifies the GraphSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GraphSourceProperty

Field Value

DependencyProperty

GroupStyleProperty

Identifies the SelectedGroupBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupStyleProperty

Field Value

DependencyProperty

GroupsChangedEvent

Identifies the ItemsChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent GroupsChangedEvent

Field Value

RoutedEvent

IsAdditionalContentVisibleProperty

Identifies the IsAdditionalContentVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsAdditionalContentVisibleProperty

Field Value

DependencyProperty

IsBackgroundSurfaceVisibleProperty

Identifies the IsBackgroundSurfaceVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsBackgroundSurfaceVisibleProperty

Field Value

DependencyProperty

IsConnectorsManipulationEnabledProperty

Identifies the IsConnectorsManipulationEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty

Field Value

DependencyProperty

IsDraggingEnabledProperty

Identifies the IsDraggingEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsDraggingEnabledProperty

Field Value

DependencyProperty

IsEditableProperty

Identifies the IsEditable dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsEditableProperty

Field Value

DependencyProperty

IsInformationAdornerVisibleProperty

Identifies the IsInformationAdornerVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsInformationAdornerVisibleProperty

Field Value

DependencyProperty

IsManipulationAdornerVisibleProperty

Identifies the IsManipulationAdornerVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty

Field Value

DependencyProperty

IsPanEnabledProperty

Identifies the IsPanEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsPanEnabledProperty

Field Value

DependencyProperty

IsResizingEnabledProperty

Identifies the IsResizingEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsResizingEnabledProperty

Field Value

DependencyProperty

IsRotationEnabledProperty

Identifies the IsRotationEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsRotationEnabledProperty

Field Value

DependencyProperty

IsSnapToGridEnabledProperty

Identifies the IsSnapEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSnapToGridEnabledProperty

Field Value

DependencyProperty

IsSnapToItemsEnabledProperty

Identifies the IsSnapToItemsEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSnapToItemsEnabledProperty

Field Value

DependencyProperty

IsZoomEnabledProperty

Identifies the IsZoomEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsZoomEnabledProperty

Field Value

DependencyProperty

ItemsChangedEvent

Identifies the ItemsChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ItemsChangedEvent

Field Value

RoutedEvent

ItemsChangingEvent

Identifies the ItemsChanging routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ItemsChangingEvent

Field Value

RoutedEvent

ItemsProperty

Identifies the Items dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsProperty

Field Value

DependencyProperty

MetadataDeserializedEvent

Identifies the MetadataDeserialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent MetadataDeserializedEvent

Field Value

RoutedEvent

MetadataSerializedEvent

Identifies the MetadataSerialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent MetadataSerializedEvent

Field Value

RoutedEvent

PanEvent

Identifies the PreviewPan routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PanEvent

Field Value

RoutedEvent

PositionChangedEvent

Identifies the PositionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PositionChangedEvent

Field Value

RoutedEvent

PositionProperty

Identifies the Position dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PositionProperty

Field Value

DependencyProperty

PreviewAdditionalContentActivatedEvent

Identifies the PreviewAdditionalContentOpened routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewAdditionalContentActivatedEvent

Field Value

RoutedEvent

PreviewDragEvent

Identifies the PreviewDrag routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewDragEvent

Field Value

RoutedEvent

PreviewPanEvent

Identifies the PreviewPan routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewPanEvent

Field Value

RoutedEvent

PreviewResizeEvent

Identifies the PreviewResize routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewResizeEvent

Field Value

RoutedEvent

PreviewRotateEvent

Identifies the PreviewRotate routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewRotateEvent

Field Value

RoutedEvent

PreviewSelectionChangedEvent

Identifies the PreviewSelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewSelectionChangedEvent

Field Value

RoutedEvent

PreviewZoomEvent

Identifies the PreviewZoom routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent PreviewZoomEvent

Field Value

RoutedEvent

RectSelectionModeProperty

Identifies the RectSelectionMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RectSelectionModeProperty

Field Value

DependencyProperty

ResizeEvent

Identifies the Resize routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ResizeEvent

Field Value

RoutedEvent

RotateEvent

Identifies the Rotate routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent RotateEvent

Field Value

RoutedEvent

RouteConnectionsProperty

Identifies the RouteConnections dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RouteConnectionsProperty

Field Value

DependencyProperty

SelectedEvent

Identifies the Selected routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectedEvent

Field Value

RoutedEvent

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedIndexProperty

Field Value

DependencyProperty

SelectedItemProperty

Identifies the SelectedItem dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedItemProperty

Field Value

DependencyProperty

SelectionChangedEvent

Identifies the SelectionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SelectionChangedEvent

Field Value

RoutedEvent

SelectionModeProperty

Identifies the SelectionMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionModeProperty

Field Value

DependencyProperty

SelectionRectangleStyleProperty

Identifies the SelectionRectangleStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionRectangleStyleProperty

Field Value

DependencyProperty

SerializedEvent

Identifies the Serialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent SerializedEvent

Field Value

RoutedEvent

ShapeClickedEvent

Identifies the ShapeClicked routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ShapeClickedEvent

Field Value

RoutedEvent

ShapeDeserializedEvent

Identifies the ShapeDeserialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ShapeDeserializedEvent

Field Value

RoutedEvent

ShapeDoubleClickedEvent

Identifies the ShapeDoubleClicked routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ShapeDoubleClickedEvent

Field Value

RoutedEvent

ShapeEditTemplateProperty

Identifies the ShapeEditTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeEditTemplateProperty

Field Value

DependencyProperty

ShapeEditTemplateSelectorProperty

Identifies the ShapeEditTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeEditTemplateSelectorProperty

Field Value

DependencyProperty

ShapeSerializedEvent

Identifies the ShapeSerialized routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ShapeSerializedEvent

Field Value

RoutedEvent

ShapeStyleProperty

Identifies the ShapeStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeStyleProperty

Field Value

DependencyProperty

ShapeStyleSelectorProperty

Identifies the ShapeStyleSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeStyleSelectorProperty

Field Value

DependencyProperty

ShapeTemplateProperty

Identifies the ShapeTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeTemplateProperty

Field Value

DependencyProperty

ShapeTemplateSelectorProperty

Identifies the ShapeTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShapeTemplateSelectorProperty

Field Value

DependencyProperty

SnapXProperty

Identifies the SnapX dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SnapXProperty

Field Value

DependencyProperty

SnapYProperty

Identifies the SnapY dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SnapYProperty

Field Value

DependencyProperty

SupportTouchGesturesProperty

Identifies the SupportTouchGestures dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SupportTouchGesturesProperty

Field Value

DependencyProperty

UnselectedEvent

Identifies the Unselected routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent UnselectedEvent

Field Value

RoutedEvent

ViewportProperty

Identifies the Viewport dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ViewportProperty

Field Value

DependencyProperty

ZoomChangedEvent

Identifies the ZoomChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ZoomChangedEvent

Field Value

RoutedEvent

ZoomProperty

Identifies the Zoom dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ZoomProperty

Field Value

DependencyProperty

Properties

ActiveTool

Gets or sets the tool which is active when interacting with the diagram elements.

Declaration

cs-api-definition
public MouseTool ActiveTool { get; set; }

Property Value

MouseTool

AllowCopy

Gets or sets a value indicating whether copying is allowed.

Declaration

cs-api-definition
public bool AllowCopy { get; set; }

Property Value

bool

True if copying is allowed; otherwise, false.

Implements ISupportManipulation.AllowCopy

AllowCut

Gets or sets a value indicating whether cutting is allowed.

Declaration

cs-api-definition
public bool AllowCut { get; set; }

Property Value

bool

True if cutting is allowed; otherwise, false.

Implements ISupportManipulation.AllowCut

AllowDelete

Gets or sets a value indicating whether deleting is allowed.

Declaration

cs-api-definition
public bool AllowDelete { get; set; }

Property Value

bool

True if deleting is allowed; otherwise, false.

Implements ISupportManipulation.AllowDelete

AllowPaste

Gets or sets a value indicating whether pasting is allowed.

Declaration

cs-api-definition
public bool AllowPaste { get; set; }

Property Value

bool

True if pasting is allowed; otherwise, false.

Implements ISupportManipulation.AllowPaste

AutoLayout

Gets or sets the auto layout.

Declaration

cs-api-definition
public bool AutoLayout { get; set; }

Property Value

bool

ConnectionBridge

Gets or sets the connection bridge type.

Declaration

cs-api-definition
public BridgeType ConnectionBridge { get; set; }

Property Value

BridgeType

Implements IGraphInternal.ConnectionBridge

ConnectionEditTemplate

Gets or sets the connection edit template.

Declaration

cs-api-definition
public DataTemplate ConnectionEditTemplate { get; set; }

Property Value

DataTemplate

The connection edit template.

ConnectionEditTemplateSelector

Gets or sets the connection edit template selector.

Declaration

cs-api-definition
public DataTemplateSelector ConnectionEditTemplateSelector { get; set; }

Property Value

DataTemplateSelector

The connection edit template selector.

ConnectionRoundedCorners

Gets or sets whether the corners of the (polyline) connection are rounded.

Declaration

cs-api-definition
public bool ConnectionRoundedCorners { get; set; }

Property Value

bool

Implements IGraphInternal.ConnectionRoundedCorners

Remarks

This property has only an effect when the ConnectionType is set to Polyline.

ConnectionStyle

Gets or sets the connection style.

Declaration

cs-api-definition
public Style ConnectionStyle { get; set; }

Property Value

Style

The connection style.

ConnectionStyleSelector

Gets or sets the connection style selector.

Declaration

cs-api-definition
public StyleSelector ConnectionStyleSelector { get; set; }

Property Value

StyleSelector

The connection style selector.

ConnectionTemplate

Gets or sets the connection template.

Declaration

cs-api-definition
public DataTemplate ConnectionTemplate { get; set; }

Property Value

DataTemplate

The connection template.

ConnectionTemplateSelector

Gets or sets the connection template selector.

Declaration

cs-api-definition
public DataTemplateSelector ConnectionTemplateSelector { get; set; }

Property Value

DataTemplateSelector

The connection template selector.

Connections

Gets the connections.

Declaration

cs-api-definition
public ConnectionCollection Connections { get; }

Property Value

ConnectionCollection

Implements IGraph.Connections

ConnectorStyle

Gets or sets the connector style.

Declaration

cs-api-definition
public Style ConnectorStyle { get; set; }

Property Value

Style

The connector style.

ContainerGenerator

Gets the container generator.

Declaration

cs-api-definition
public IContainerGenerator<RadDiagramItem> ContainerGenerator { get; }

Property Value

IContainerGenerator<RadDiagramItem>

ContainerShapeStyle

Gets or sets the container shape style.

Declaration

cs-api-definition
public Style ContainerShapeStyle { get; set; }

Property Value

Style

The container shape style.

DisplayMemberPath

Gets or sets the display member path.

Declaration

cs-api-definition
public string DisplayMemberPath { get; set; }

Property Value

string

The display member path.

GraphSource

Gets or sets the graph source.

Declaration

cs-api-definition
public IGraphSource GraphSource { get; set; }

Property Value

IGraphSource

The graph source.

Implements IGraph.GraphSource

GroupStyle

Gets or sets the Style for the groups adorner. It is shown when a group is selected.

Declaration

cs-api-definition
public Style GroupStyle { get; set; }

Property Value

Style

Groups

Gets the group collection.

Declaration

cs-api-definition
public IEnumerable<IGroup> Groups { get; }

Property Value

IEnumerable<IGroup>

Implements IGraph.Groups

IgnoreLinkDirection

Gets or sets a value indicating whether the underlying graph structure is a directional graph.

Declaration

cs-api-definition
public bool IgnoreLinkDirection { get; set; }

Property Value

bool

True if link directions are ignored; otherwise, false.

Implements IGraph.IgnoreLinkDirection

IsAdditionalContentVisible

Gets a value indicating whether the additional content visible.

Declaration

cs-api-definition
public bool IsAdditionalContentVisible { get; }

Property Value

bool

IsBackgroundSurfaceVisible

Gets or sets whether the background grid is visible.

Declaration

cs-api-definition
public bool IsBackgroundSurfaceVisible { get; set; }

Property Value

bool

Implements IGraph.IsBackgroundSurfaceVisible

IsConnectorsManipulationEnabled

Gets or sets a value indicating whether manipulation on the connectors is enabled.

Declaration

cs-api-definition
public bool IsConnectorsManipulationEnabled { get; set; }

Property Value

bool

True if manipulation on connectors is enabled; otherwise, false.

Implements ISupportManipulation.IsConnectorsManipulationEnabled

IsDraggingEnabled

Gets or sets a value indicating whether dragging is enabled.

Declaration

cs-api-definition
public bool IsDraggingEnabled { get; set; }

Property Value

bool

True if dragging is enabled; otherwise, false.

Implements ISupportManipulation.IsDraggingEnabled

IsEditable

Gets or sets a value indicating whether editing is enabled.

Declaration

cs-api-definition
public bool IsEditable { get; set; }

Property Value

bool

True if editing is enabled; otherwise, false.

Implements IGraph.IsEditable

IsInformationAdornerVisible

Gets or sets whether the information adorner is visible.

Declaration

cs-api-definition
public bool IsInformationAdornerVisible { get; set; }

Property Value

bool

IsManipulationAdornerVisible

Gets or sets a value indicating whether the manipulation adorner is visible.

Declaration

cs-api-definition
public bool IsManipulationAdornerVisible { get; set; }

Property Value

bool

True if the manipulation adorner is visible; otherwise, false.

Implements ISupportManipulation.IsManipulationAdornerVisible

IsMouseCaptured

Gets or sets a value indicating whether the mouse is captured.

Declaration

cs-api-definition
public bool IsMouseCaptured { get; set; }

Property Value

bool

True if the mouse is captured; otherwise, false.

Implements IGraph.IsMouseCaptured

IsPanEnabled

Gets or sets a value indicating whether panning is enabled.

Declaration

cs-api-definition
public bool IsPanEnabled { get; set; }

Property Value

bool

True if panning is enabled; otherwise, false.

Implements IGraph.IsPanEnabled

IsResizingEnabled

Gets or sets a value indicating whether resizing is enabled.

Declaration

cs-api-definition
public bool IsResizingEnabled { get; set; }

Property Value

bool

True if resizing is enabled; otherwise, false.

Implements ISupportManipulation.IsResizingEnabled

IsRotationEnabled

Gets or sets a value indicating whether rotation is enabled.

Declaration

cs-api-definition
public bool IsRotationEnabled { get; set; }

Property Value

bool

true if this rotation is enabled; otherwise, false.

Implements ISupportManipulation.IsRotationEnabled

IsSnapToGridEnabled

Gets or sets a value indicating whether grid snapping is enabled.

Declaration

cs-api-definition
public bool IsSnapToGridEnabled { get; set; }

Property Value

bool

True if grid snapping is enabled; otherwise, false.

Implements IGraph.IsSnapToGridEnabled

IsSnapToItemsEnabled

Gets or sets a value indicating whether snapping of selected item(s) to the other items in the view port is enabled or not.

Declaration

cs-api-definition
public bool IsSnapToItemsEnabled { get; set; }

Property Value

bool

Implements IGraph.IsSnapToItemsEnabled

IsZoomEnabled

Gets or sets a value indicating whether zooming is enabled.

Declaration

cs-api-definition
public bool IsZoomEnabled { get; set; }

Property Value

bool

True if zooming is enabled; otherwise, false.

Implements IGraph.IsZoomEnabled

Items

Gets or sets the diagramming items.

Declaration

cs-api-definition
public DiagramItemCollection Items { get; }

Property Value

DiagramItemCollection

The items.

Implements IGraph.Items

Metadata

Gets the diagram metadata.

Declaration

cs-api-definition
public DiagramMetadata Metadata { get; }

Property Value

DiagramMetadata

Implements IGraph.Metadata

Position

Gets or sets the position.

Declaration

cs-api-definition
public Point Position { get; set; }

Property Value

Point

The position.

Implements IGraph.Position

RectSelectionMode

Gets or sets the rectangle selection mode.

Declaration

cs-api-definition
public RectSelectionMode RectSelectionMode { get; set; }

Property Value

RectSelectionMode

Implements IGraph.RectSelectionMode

RouteConnections

Gets whether the Spline and Polyline connections will be automatically routed.

Declaration

cs-api-definition
public bool RouteConnections { get; set; }

Property Value

bool

Implements IGraphInternal.RouteConnections

Remarks

Setting this property has no effect on other connection types.

RoutingService

Declaration

cs-api-definition
public IRoutingService RoutingService { get; }

Property Value

IRoutingService

SelectedIndex

Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.

Declaration

cs-api-definition
public int SelectedIndex { get; set; }

Property Value

int

SelectedItem

Gets or sets the first item in the current selection or returns null if the selection is empty. This is a dependency property.

Declaration

cs-api-definition
public object SelectedItem { get; set; }

Property Value

object

SelectedItems

Gets the selected items.

Declaration

cs-api-definition
public IEnumerable<object> SelectedItems { get; }

Property Value

IEnumerable<object>

SelectionBounds

Gets the starting selection bounds.

Declaration

cs-api-definition
public Rect SelectionBounds { get; }

Property Value

Rect

SelectionMode

Gets or sets the selection mode.

Declaration

cs-api-definition
public SelectionMode SelectionMode { get; set; }

Property Value

SelectionMode

Implements IGraph.SelectionMode

SelectionRectangleStyle

Gets or sets the style of the selection rectangle.

Declaration

cs-api-definition
public Style SelectionRectangleStyle { get; set; }

Property Value

Style

ServiceLocator

Gets the service locator.

Declaration

cs-api-definition
public IServiceLocator ServiceLocator { get; }

Property Value

IServiceLocator

Implements IGraphInternal.ServiceLocator

ShapeEditTemplate

Gets or sets the shape edit template.

Declaration

cs-api-definition
public DataTemplate ShapeEditTemplate { get; set; }

Property Value

DataTemplate

The shape edit template.

ShapeEditTemplateSelector

Gets or sets the shape edit template selector.

Declaration

cs-api-definition
public DataTemplateSelector ShapeEditTemplateSelector { get; set; }

Property Value

DataTemplateSelector

The shape edit template selector.

ShapeStyle

Gets or sets the shape style.

Declaration

cs-api-definition
public Style ShapeStyle { get; set; }

Property Value

Style

The shape style.

ShapeStyleSelector

Gets or sets the shape style selector.

Declaration

cs-api-definition
public StyleSelector ShapeStyleSelector { get; set; }

Property Value

StyleSelector

The shape style selector.

ShapeTemplate

Gets or sets the shape template.

Declaration

cs-api-definition
public DataTemplate ShapeTemplate { get; set; }

Property Value

DataTemplate

The shape template.

ShapeTemplateSelector

Gets or sets the shape template selector.

Declaration

cs-api-definition
public DataTemplateSelector ShapeTemplateSelector { get; set; }

Property Value

DataTemplateSelector

The shape template selector.

Shapes

Gets the shapes.

Declaration

cs-api-definition
public ShapeCollection Shapes { get; }

Property Value

ShapeCollection

Implements IGraph.Shapes

SnapX

Gets or sets the horizontal snapping distance.

Declaration

cs-api-definition
public int SnapX { get; set; }

Property Value

int

The horizontal snapping distance.

Implements IGraph.SnapX

SnapY

Gets or sets the vertical snapping distance.

Declaration

cs-api-definition
public int SnapY { get; set; }

Property Value

int

The vertical snapping distance.

Implements IGraph.SnapY

SupportTouchGestures

Gets or sets a value indicating whether the touch gestures are enabled by default.

Declaration

cs-api-definition
public bool SupportTouchGestures { get; set; }

Property Value

bool

UndoRedoService

Gets the undo redo service.

Declaration

cs-api-definition
public IUndoRedoService UndoRedoService { get; }

Property Value

IUndoRedoService

Viewport

Gets the bounds of the viewport.

Declaration

cs-api-definition
public Rect Viewport { get; }

Property Value

Rect

Implements IGraph.Viewport

Zoom

Gets or sets the zoom. A zoom value of 1 means 100% and less then 1 means a zoom out. Zoom value will be coerced to be greater than zero, not infinity and not Nan. In addition, Zoom value will be coerced to be greater or equal than MinimumZoom and smaller or equal than MaximumZoom.

Declaration

cs-api-definition
public double Zoom { get; set; }

Property Value

double

Implements IGraph.Zoom

Methods

AddConnection(IConnection, bool)

Adds a new connection to the diagram.

Declaration

cs-api-definition
public IConnection AddConnection(IConnection connection, bool isUndoable = false)

Parameters

connection

IConnection

The connection to be added.

isUndoable

bool

If set to true this action will be recorded in the undo stack.

Returns

IConnection

Implements IGraph.AddConnection(IConnection, bool)

AddConnection(IShape, IShape, bool)

Adds a new connection to the diagram connecting the given source and target shapes.

Declaration

cs-api-definition
public IConnection AddConnection(IShape source, IShape target, bool isUndoable = false)

Parameters

source

IShape

The source or start shape of the connection.

target

IShape

The target or end shape of the connection.

isUndoable

bool

If set to true this action will be recorded in the undo stack.

Returns

IConnection

Implements IGraph.AddConnection(IShape, IShape, bool)

AddConnection(IShape, IShape, string, bool)

Adds a new connection to the diagram connecting the given source and target shapes.

Declaration

cs-api-definition
public IConnection AddConnection(IShape source, IShape target, string connectorsPosition, bool isUndoable = false)

Parameters

source

IShape

The source or start shape of the connection.

target

IShape

The target or end shape of the connection.

connectorsPosition

string

The connectors position.

isUndoable

bool

If set to true this action will be recorded in the undo stack.

Returns

IConnection

AddConnection(IShape, IShape, string, string, bool)

Adds a new connection to the diagram connecting the given source and target shapes.

Declaration

cs-api-definition
public IConnection AddConnection(IShape source, IShape target, string sourceConnector, string targetConnector, bool isUndoable = false)

Parameters

source

IShape

The source.

target

IShape

The target.

sourceConnector

string

The source connector position.

targetConnector

string

The target connector position.

isUndoable

bool

If set to true is undoable.

Returns

IConnection

AddConnection(Point, Point, bool)

Adds a floating connection.

Declaration

cs-api-definition
public IConnection AddConnection(Point startPoint, Point endPoint, bool isUndoable = false)

Parameters

startPoint

Point

The source (starting) point of the connection.

endPoint

Point

The target (end) point of the connection.

isUndoable

bool

True, if this action is undoable.

Returns

IConnection

Returns the added connection.

Implements IGraph.AddConnection(Point, Point, bool)

AddGlidingConnection(IShape, IShape, bool)

Adds a new gliding connection to the diagram connecting the given source and target shapes.

Declaration

cs-api-definition
public IConnection AddGlidingConnection(IShape source, IShape target, bool isUndoable = false)

Parameters

source

IShape

The source or start shape of the connection.

target

IShape

The target or end shape of the connection.

isUndoable

bool

If set to true this action will be recorded in the undo stack.

Returns

IConnection

Remarks

If the shape already contains connections on the default connectors this will raise an exception since gliding connections are mutually exclusive with normal connections. Remove first the existing connections on the source and target shapes before calling this method.

AddImageShape(Stream, Point)

Adds a shape with image content.

Declaration

cs-api-definition
public void AddImageShape(Stream source, Point position)

Parameters

source

Stream

position

Point

AddShape(IShape, Point?, bool)

Adds the given shape to the diagram.

Declaration

cs-api-definition
public IShape AddShape(IShape shape, Point? position = null, bool isUndoable = false)

Parameters

shape

IShape

The shape to add.

position

Point?

The position at which the shape will be added on the canvas.

isUndoable

bool

If set to true the action is undoable.

Returns

IShape

Implements IGraph.AddShape(IShape, Point?, bool)

AddShape(object, ArrowShapeType, Point?, bool)

Adds a new shape to the diagram.

Declaration

cs-api-definition
public IShape AddShape(object content, ArrowShapeType type, Point? position = null, bool isUndoable = false)

Parameters

content

object

The content of the shape.

type

ArrowShapeType

The common shape type.

position

Point?

The position.

isUndoable

bool

If set to true the addition will be recorded as undoable.

Returns

IShape

The added shape.

Remarks

The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.

AddShape(object, CommonShapeType, Point?, bool)

Adds a new shape to the diagram.

Declaration

cs-api-definition
public IShape AddShape(object content, CommonShapeType type, Point? position = null, bool isUndoable = false)

Parameters

content

object

The content of the shape.

type

CommonShapeType

The common shape type.

position

Point?

The position.

isUndoable

bool

If set to true the addition will be recorded as undoable.

Returns

IShape

The added shape.

Remarks

The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.

AddShape(object, FlowChartShapeType, Point?, bool)

Adds a new shape to the diagram.

Declaration

cs-api-definition
public IShape AddShape(object content, FlowChartShapeType type, Point? position = null, bool isUndoable = false)

Parameters

content

object

The content of the shape.

type

FlowChartShapeType

The common shape type.

position

Point?

The position.

isUndoable

bool

If set to true the addition will be recorded as undoable.

Returns

IShape

The added shape.

Remarks

The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.

AddShape(object, Geometry, Point?, bool)

Adds a new shape to the diagram.

Declaration

cs-api-definition
public IShape AddShape(object content, Geometry geometry = null, Point? position = null, bool isUndoable = false)

Parameters

content

object

The content of the shape.

geometry

Geometry

The geometry.

position

Point?

The position.

isUndoable

bool

If set to true the action is undoable.

Returns

IShape

The added shape.

Remarks

The given object will be inserted as the content of a new RadDiagramShape and will internally uniquely identify the shape. Alternatively, you can instantiate a new shape and use this same AddShape method to add it to the diagram, in which case the shape rather than the content will uniquely identify it internally.

Align(Alignment, IEnumerable<IShape>)

Aligns the given shapes.

Declaration

cs-api-definition
public void Align(Alignment alignment, IEnumerable<IShape> shapes)

Parameters

alignment

Alignment

shapes

IEnumerable<IShape>

AutoFit()

Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas.

Declaration

cs-api-definition
public void AutoFit()

AutoFit(Thickness, bool)

Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas. If there are no items or the visible area is with empty size or the margin is greater than the visible area no action will be performed.

Declaration

cs-api-definition
public void AutoFit(Thickness margin, bool useAnimation = true)

Parameters

margin

Thickness

The margin to be used as whitespace border around the diagram items.

useAnimation

bool

Determines whether animations should be used.

AutoFitAsync(Thickness, bool)

Zoom and pans the diagram asynchronously in such a way that all items will fit into the currently visible area of the canvas. If there are no items or the visible area is with empty size or the margin is greater than the visible area no action will be performed.

Declaration

cs-api-definition
public void AutoFitAsync(Thickness margin, bool useAnimation = true)

Parameters

margin

Thickness

The margin to be used as whitespace border around the diagram items.

useAnimation

bool

Determines whether animations should be used.

BeginBatchTransformation()

Begins a batch transformation and signals the undo-redo stack that a batch of transformation should be considered as one, i.e. a composite change.

Declaration

cs-api-definition
public DiagramLayoutState BeginBatchTransformation()

Returns

DiagramLayoutState

Implements IGraph.BeginBatchTransformation()

BringForward(IEnumerable<IDiagramItem>, bool)

Brings the items forward.

Declaration

cs-api-definition
public void BringForward(IEnumerable<IDiagramItem> items, bool isUndoable = true)

Parameters

items

IEnumerable<IDiagramItem>

isUndoable

bool

BringIntoView(Point, double, bool)

Brings the provided point into the top left corner of the view port with the requested zoom.

Declaration

cs-api-definition
public bool BringIntoView(Point position, double zoomLevel = 1, bool useAnimation = true)

Parameters

position

Point

The point to bring to the top left view port corner. If the position is invalid (NaN or infinity) the operation will not be executed.

zoomLevel

double

The zoom level. It will be coerced according to Zoom property restriction.

useAnimation

bool

Determines whether an animation will be used.

Returns

bool

Whether the operation has bee executed successfully or not.

BringIntoView(Rect, bool)

Makes the requested rectangle the new view port. After the rectangle is centered in the view port a zoom operation stretches the rectangle to occupy the whole view port. The zoom is coerced according to Zoom property restriction.

Declaration

cs-api-definition
public bool BringIntoView(Rect newViewPort, bool useAnimation = true)

Parameters

newViewPort

Rect

The rect to bring into view. If the rectangle is empty the operation will not be executed.

useAnimation

bool

Determines whether an animation will be used.

Returns

bool

Whether the operation has bee executed successfully or not.

BringIntoView(object, double, bool)

Brings the provided item to the center of the view port with the requested zoom.

Declaration

cs-api-definition
public bool BringIntoView(object item, double zoomLevel = 1, bool useAnimation = true)

Parameters

item

object

The shape to bring to the center of the view port. If the item is null or has with invalid position/size (NaN or infinity) the operation will not be executed.

zoomLevel

double

The zoom level. It will be coerced according to Zoom property restriction.

useAnimation

bool

Determines whether an animation will be used.

Returns

bool

Whether the operation has bee executed successfully or not.

BringToFront(IEnumerable<IDiagramItem>, bool)

Brings the items to front.

Declaration

cs-api-definition
public void BringToFront(IEnumerable<IDiagramItem> items, bool isUndoable = true)

Parameters

items

IEnumerable<IDiagramItem>

isUndoable

bool

CleanContainerForItemOverride(FrameworkElement, object)

Cleans the container for item override.

Declaration

cs-api-definition
protected virtual void CleanContainerForItemOverride(FrameworkElement container, object item)

Parameters

container

FrameworkElement

The container.

item

object

The item.

Clear()

Clears the diagram and resets the document.

Declaration

cs-api-definition
public void Clear()

Remarks

The diagram is not saved prior to this reset. You need to handle in the application the eventual necessity to save (or request the user) the diagram before this.

CommitBatchTransformation(DiagramLayoutState, DiagramLayoutState, bool, bool, LayoutType, object)

Commits the batch transformation and ends the composite undo redo change.

Declaration

cs-api-definition
public void CommitBatchTransformation(DiagramLayoutState initialState, DiagramLayoutState finalState, bool animate = false, bool execute = true, LayoutType type = LayoutType.Sugiyama, object settings = null)

Parameters

initialState

DiagramLayoutState

The initial state.

finalState

DiagramLayoutState

The final state.

animate

bool

If set to true the layout will be animated.

execute

bool

Whether the undo-redo unit is only added or also executed.

type

LayoutType

The layout type that has been applied.

settings

object

The layout specific settings used for the layout.

Implements IGraph.CommitBatchTransformation(DiagramLayoutState, DiagramLayoutState, bool, bool, LayoutType, object)

Remarks

The animation tremendously decreases the performance.

Copy()

Copies the currently selected items of the diagram.

Declaration

cs-api-definition
public void Copy()

Cut()

Cuts the currently selected items of the diagram.

Declaration

cs-api-definition
public void Cut()

Delete()

Deletes the currently selected items of the diagram.

Declaration

cs-api-definition
public virtual void Delete()

DeselectAll()

Deselects all shapes in the diagram.

Declaration

cs-api-definition
public void DeselectAll()

Deserialize(SerializationInfo)

Deserializes the specified info.

Declaration

cs-api-definition
public virtual void Deserialize(SerializationInfo info)

Parameters

info

SerializationInfo

The info.

Implements ISerializable.Deserialize(SerializationInfo)

Export(string)

Exports the Diagram into png or bmp.

Declaration

cs-api-definition
public void Export(string exportFormat)

Parameters

exportFormat

string

ExportToImage(Stream, BitmapEncoder, Rect?, Size, Brush, Thickness, double)

Exports an image of the given element to stream using the specified bitmap encoder.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public void ExportToImage(Stream stream, BitmapEncoder encoder = null, Rect? enclosingBounds = null, Size returnImageSize = null, Brush backgroundBrush = null, Thickness margin = null, double dpi = 96)

Parameters

stream

Stream

The stream to write the image to.

encoder

BitmapEncoder

The bitmap encoder. If none is specified the will be used.

enclosingBounds

Rect?

The bound of the diagram which should be exported.

returnImageSize

Size

The size of the exported image.

backgroundBrush

Brush

The background brush to use.

margin

Thickness

The margin around the exported image.

dpi

double

The quality of the image.

GetConnectionContainerForItemOverride(object)

Gets the connection container for item override.

Declaration

cs-api-definition
protected virtual IConnection GetConnectionContainerForItemOverride(object item)

Parameters

item

object

The item.

Returns

IConnection

GetShapeContainerForItemOverride(IContainerItem)

Gets the 'container shape' container for item override.

Declaration

cs-api-definition
protected virtual IContainerShape GetShapeContainerForItemOverride(IContainerItem item)

Parameters

item

IContainerItem

The item.

Returns

IContainerShape

GetShapeContainerForItemOverride(object)

Gets the shape container for item override.

Declaration

cs-api-definition
protected virtual IShape GetShapeContainerForItemOverride(object item)

Parameters

item

object

The item.

Returns

IShape

GetTextShapeContainerForItemOverride(object)

Gets the text shape container for item override.

Declaration

cs-api-definition
protected virtual IShape GetTextShapeContainerForItemOverride(object item)

Parameters

item

object

The item.

Returns

IShape

Group(string, bool, params IGroupable[])

Groups the specified items.

Declaration

cs-api-definition
public IGroup Group(string groupName = null, bool isUndoable = false, params IGroupable[] items)

Parameters

groupName

string

Name of the new group.

isUndoable

bool

If set to true the action will be recorded as undoable.

items

IGroupable[]

The groups items to ungroup.

Returns

IGroup

Implements IGraph.Group(string, bool, params IGroupable[])

Group(string, params IGroupable[])

Groups the specified items.

Declaration

cs-api-definition
public IGroup Group(string groupName = null, params IGroupable[] items)

Parameters

groupName

string

Name of the new group.

items

IGroupable[]

The groups items to ungroup.

Returns

IGroup

Implements IGraph.Group(string, params IGroupable[])

IsInViewport(IDiagramItem)

Checks if the diagram item is in the viewport.

Declaration

cs-api-definition
public bool IsInViewport(IDiagramItem item)

Parameters

item

IDiagramItem

Returns

bool

IsItemItsOwnConnectionContainerOverride(object)

Determines whether [is item its own connection container override] [the specified item].

Declaration

cs-api-definition
protected virtual bool IsItemItsOwnConnectionContainerOverride(object item)

Parameters

item

object

The item.

Returns

bool

True if [is item its own connection container override] [the specified item]; otherwise, false.

IsItemItsOwnShapeContainerOverride(object)

Determines whether the item is a container on its own.

Declaration

cs-api-definition
protected virtual bool IsItemItsOwnShapeContainerOverride(object item)

Parameters

item

object

The item.

Returns

bool

True if the item is its own container; otherwise, false.

Layout(LayoutType, object)

Organizes the diagram using the specified layout.

Declaration

cs-api-definition
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)

Parameters

type

LayoutType

The layout type to apply.

settings

object

The settings specific to the layout type.

LayoutAsync(LayoutType, object)

Organizes the diagram using the specified layout asynchronously.

Declaration

cs-api-definition
public void LayoutAsync(LayoutType type = LayoutType.Sugiyama, object settings = null)

Parameters

type

LayoutType

The layout type to apply.

settings

object

The settings specific to the layout type.

Load(string)

Loads the specified serialization string.

Declaration

cs-api-definition
public void Load(string serializationValue)

Parameters

serializationValue

string

The serialization value.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCanExecuteDeleteCommandOverride(object, CanExecuteRoutedEventArgs)

Called on can execute delete command.

Declaration

cs-api-definition
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)

Parameters

sender

object

e

CanExecuteRoutedEventArgs

OnCreateAutomationPeer()

Creates a peer associated with this object.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

An instance of the .

OnDeleteCommandExecutedOverride(object, ExecutedRoutedEventArgs)

Called when delete command is executed.

Declaration

cs-api-definition
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)

Parameters

sender

object

e

ExecutedRoutedEventArgs

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnIsConnectorsManipulationEnabledChanged(bool, bool)

Called on is connectors manipulation enabled property changed.

Declaration

cs-api-definition
protected virtual void OnIsConnectorsManipulationEnabledChanged(bool oldValue, bool newValue)

Parameters

oldValue

bool

The old value.

newValue

bool

The new value.

OnKeyDownHandled(object, KeyEventArgs)

Declaration

cs-api-definition
protected virtual void OnKeyDownHandled(object sender, KeyEventArgs e)

Parameters

sender

object

e

KeyEventArgs

OnKeyUpHandled(object, KeyEventArgs)

Declaration

cs-api-definition
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)

Parameters

sender

object

e

KeyEventArgs

OnMouseLeftButtonDown(MouseButtonEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The data for the event.

OnMouseLeftButtonUp(MouseButtonEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

The data for the event.

OnMouseMove(MouseEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnMouseMove(MouseEventArgs e)

Parameters

e

MouseEventArgs

The data for the event.

OnMouseWheel(MouseWheelEventArgs)

Called when the mouse wheel is used to zoom the diagram.

Declaration

cs-api-definition
protected override void OnMouseWheel(MouseWheelEventArgs e)

Parameters

e

MouseWheelEventArgs

The MouseWheelEventArgs instance containing the event data.

OnPositionChanged(Point, Point)

Called when the Position property changes.

Declaration

cs-api-definition
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)

Parameters

oldPosition

Point

newPosition

Point

OnRouteConnectionsChanged(bool, bool)

Called on route connections property change.

Declaration

cs-api-definition
protected virtual void OnRouteConnectionsChanged(bool newValue, bool oldValue)

Parameters

newValue

bool

The new value.

oldValue

bool

The old value.

OnZoomChanged(double, double)

Called when the Zoomproperty changes.

Declaration

cs-api-definition
protected virtual void OnZoomChanged(double oldZoom, double newZoom)

Parameters

oldZoom

double

newZoom

double

Paste()

Pastes the content of the clipboard onto the diagram.

Declaration

cs-api-definition
public virtual void Paste()

PrepareConnectionContainerForItemOverride(FrameworkElement, object)

Prepares the container for item override.

Declaration

cs-api-definition
protected virtual void PrepareConnectionContainerForItemOverride(FrameworkElement container, object item)

Parameters

container

FrameworkElement

The container.

item

object

The item.

PrepareShapeContainerForItemOverride(FrameworkElement, object)

Prepares the container for item override.

Declaration

cs-api-definition
protected virtual void PrepareShapeContainerForItemOverride(FrameworkElement container, object item)

Parameters

container

FrameworkElement

The container.

item

object

The item.

Print(RadDiagramPrintSettings)

Print the diagram.

Declaration

cs-api-definition
public bool Print(RadDiagramPrintSettings printSettings = null)

Parameters

printSettings

RadDiagramPrintSettings

The print settings.

Returns

bool

True when the printing is successful, False otherwise.

PublishDiagramEvent(DiagramEvent, object)

Raises generic event.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[SuppressMessage("Microsoft.Maintainability", "CA1505:AvoidUnmaintainableCode")]
protected virtual bool PublishDiagramEvent(DiagramEvent diagramEvent, object args)

Parameters

diagramEvent

DiagramEvent

args

object

Returns

bool

Redo()

Performs redo on the last undone action.

Declaration

cs-api-definition
public void Redo()

RemoveConnection(IConnection, bool)

Removes the connection.

Declaration

cs-api-definition
public void RemoveConnection(IConnection connection, bool isUndoable = false)

Parameters

connection

IConnection

The connection.

isUndoable

bool

If set to true the action is undoable.

Implements IGraph.RemoveConnection(IConnection, bool)

RemoveShape(IShape, bool)

Removes the shape.

Declaration

cs-api-definition
public void RemoveShape(IShape shape, bool isUndoable = false)

Parameters

shape

IShape

The shape.

isUndoable

bool

If set to true the action is undoable.

Implements IGraph.RemoveShape(IShape, bool)

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

ResetViewport(bool)

Brings the (0, 0) point into the top left corner of the view port with zoom equal to 1.

Declaration

cs-api-definition
public void ResetViewport(bool useAnimation = true)

Parameters

useAnimation

bool

Determines whether an animation will be used.

Save()

Saves the diagram.

Declaration

cs-api-definition
public string Save()

Returns

string

Returns the serialization string.

Scroll(double, double)

Scrolls with specified horizontal and vertical offset.

Declaration

cs-api-definition
public void Scroll(double horizontalOffset, double verticalOffset)

Parameters

horizontalOffset

double

The horizontal offset.

verticalOffset

double

The vertical offset.

SelectAll()

Selects all shapes in the diagram.

Declaration

cs-api-definition
public void SelectAll()

SendBackward(IEnumerable<IDiagramItem>, bool)

Sends the items backward.

Declaration

cs-api-definition
public void SendBackward(IEnumerable<IDiagramItem> items, bool isUndoable = true)

Parameters

items

IEnumerable<IDiagramItem>

isUndoable

bool

SendToBack(IEnumerable<IDiagramItem>, bool)

Sends the items to back.

Declaration

cs-api-definition
public void SendToBack(IEnumerable<IDiagramItem> items, bool isUndoable = true)

Parameters

items

IEnumerable<IDiagramItem>

isUndoable

bool

Serialize()

Serializes this instance.

Declaration

cs-api-definition
public virtual SerializationInfo Serialize()

Returns

SerializationInfo

Implements ISerializable.Serialize()

Snap(IEnumerable<IShape>)

Snaps the specified shapes.

Declaration

cs-api-definition
public void Snap(IEnumerable<IShape> shapes)

Parameters

shapes

IEnumerable<IShape>

Undo()

Performs undo on the last action.

Declaration

cs-api-definition
public void Undo()

Ungroup(bool, params IGroup[])

Ungroups the specified items.

Declaration

cs-api-definition
public void Ungroup(bool isUndoable, params IGroup[] groups)

Parameters

isUndoable

bool

If set to true the action will be recorded as undoable.

groups

IGroup[]

The groups items to ungroup.

Implements IGraph.Ungroup(bool, params IGroup[])

Ungroup(params IGroup[])

Ungroups the specified items.

Declaration

cs-api-definition
public void Ungroup(params IGroup[] groups)

Parameters

groups

IGroup[]

The groups items to ungroup.

Implements IGraph.Ungroup(params IGroup[])

UpdateRectSelection(Rect)

Updates the rectangle selection.

Declaration

cs-api-definition
protected void UpdateRectSelection(Rect bounds)

Parameters

bounds

Rect

ZoomIn(double?, Point?, bool)

Zooms in the diagram. Simulates zooming with the mouse. Performs incremental zoom taking into account previous zoom operations.

Declaration

cs-api-definition
public void ZoomIn(double? factor = null, Point? targetPoint = null, bool useAnimation = true)

Parameters

factor

double?

The value by which to change Zoom property.

targetPoint

Point?

The center of the zoom. The point should be provided in viewport coordinates.

useAnimation

bool

Determines whether animation should be used.

ZoomOut(double?, Point?, bool)

Zooms out the diagram. Simulates zooming with the mouse. Performs incremental zoom taking into account previous zoom operations.

Declaration

cs-api-definition
public void ZoomOut(double? factor = null, Point? targetPoint = null, bool useAnimation = true)

Parameters

factor

double?

The value by which to change Zoom property.

targetPoint

Point?

The center of the zoom. The point should be provided in viewport coordinates.

useAnimation

bool

Determines whether animation should be used.

Events

AdditionalContentActivated

Occurs when AdditionContent is activated.

Declaration

cs-api-definition
public event EventHandler<AdditionalContentActivatedEventArgs> AdditionalContentActivated

Event Value

EventHandler<AdditionalContentActivatedEventArgs>

CommandExecuted

Occurs when a command is executed.

Declaration

cs-api-definition
public event EventHandler<CommandRoutedEventArgs> CommandExecuted

Event Value

EventHandler<CommandRoutedEventArgs>

ConnectionDeserialized

Occurs when a connection has been deserialized.

Declaration

cs-api-definition
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionDeserialized

Event Value

EventHandler<ConnectionSerializationRoutedEventArgs>

Remarks

This event allows you to recover additional, application specific data from the serialization.

ConnectionManipulationCompleted

Occurs when the connection manipulation has completed.

Declaration

cs-api-definition
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationCompleted

Event Value

EventHandler<ManipulationRoutedEventArgs>

ConnectionManipulationStarted

Occurs before the connection manipulation has started.

Declaration

cs-api-definition
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationStarted

Event Value

EventHandler<ManipulationRoutedEventArgs>

ConnectionSerialized

Occurs when a connection has been serialized.

Declaration

cs-api-definition
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionSerialized

Event Value

EventHandler<ConnectionSerializationRoutedEventArgs>

Remarks

This event allows you to add additional, application specific data to the serialization.

ConnectorActivationChanged

Occurs after a connector activation or deactivation.

Declaration

cs-api-definition
public event EventHandler<ConnectorActivationChangedEventArgs> ConnectorActivationChanged

Event Value

EventHandler<ConnectorActivationChangedEventArgs>

Deserialized

Occurs when the diagram has been deserialized.

Declaration

cs-api-definition
public event RadRoutedEventHandler Deserialized

Event Value

RadRoutedEventHandler

DiagramLayoutComplete

Occurs when the diagram layout has completed.

Declaration

cs-api-definition
public event RoutedEventHandler DiagramLayoutComplete

Event Value

RoutedEventHandler

Drag

Occurs when an item is dragged.

Declaration

cs-api-definition
public event EventHandler<DragRoutedEventArgs> Drag

Event Value

EventHandler<DragRoutedEventArgs>

GraphSourceChanged

Occurs when the graph source has changed.

Declaration

cs-api-definition
public event EventHandler GraphSourceChanged

Event Value

EventHandler

GraphSourceChanging

Occurs when the graph source begins changing.

Declaration

cs-api-definition
public event EventHandler GraphSourceChanging

Event Value

EventHandler

GroupsChanged

Occurs when count of the groups change.

Declaration

cs-api-definition
public event EventHandler<DiagramItemsChangedEventArgs> GroupsChanged

Event Value

EventHandler<DiagramItemsChangedEventArgs>

ItemsChanged

Occurs when count of the items change.

Declaration

cs-api-definition
public event EventHandler<DiagramItemsChangedEventArgs> ItemsChanged

Event Value

EventHandler<DiagramItemsChangedEventArgs>

ItemsChanging

Occurs while the diagram items are changing.

Declaration

cs-api-definition
public event EventHandler<DiagramItemsChangingEventArgs> ItemsChanging

Event Value

EventHandler<DiagramItemsChangingEventArgs>

MetadataDeserialized

Occurs when the diagram's metadata has been deserialized.

Declaration

cs-api-definition
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataDeserialized

Event Value

EventHandler<DiagramSerializationRoutedEventArgs>

Remarks

The event allows you to deserialize the additional data added, if any, using the MetadataDeserialized event handler.

MetadataSerialized

Occurs when the diagram's metadata has been serialized.

Declaration

cs-api-definition
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataSerialized

Event Value

EventHandler<DiagramSerializationRoutedEventArgs>

Remarks

This event allows you to add additional, application specific data to the serialization.

Pan

Occurs after the diagram is panned.

Declaration

cs-api-definition
public event EventHandler<PositionChangedRoutedEventArgs> Pan

Event Value

EventHandler<PositionChangedRoutedEventArgs>

PositionChanged

Occurs when the position has changed.

Declaration

cs-api-definition
public event EventHandler<PositionChangedRoutedEventArgs> PositionChanged

Event Value

EventHandler<PositionChangedRoutedEventArgs>

PreviewAdditionalContentActivated

Occurs when AdditionContent is about to be activated.

Declaration

cs-api-definition
public event EventHandler<AdditionalContentActivatedEventArgs> PreviewAdditionalContentActivated

Event Value

EventHandler<AdditionalContentActivatedEventArgs>

PreviewDrag

Occurs before an item is dragged.

Declaration

cs-api-definition
public event EventHandler<DragRoutedEventArgs> PreviewDrag

Event Value

EventHandler<DragRoutedEventArgs>

PreviewPan

Occurs before the diagram is panned.

Declaration

cs-api-definition
public event EventHandler<PositionChangedRoutedEventArgs> PreviewPan

Event Value

EventHandler<PositionChangedRoutedEventArgs>

PreviewResize

Occurs before an item is resized.

Declaration

cs-api-definition
public event EventHandler<ResizeRoutedEventArgs> PreviewResize

Event Value

EventHandler<ResizeRoutedEventArgs>

PreviewRotate

Occurs before an item is rotated.

Declaration

cs-api-definition
public event EventHandler<RadRoutedEventArgs> PreviewRotate

Event Value

EventHandler<RadRoutedEventArgs>

PreviewSelectionChanged

Occurs when the selection of the diagram starts changing.

Declaration

cs-api-definition
public event SelectionChangedEventHandler PreviewSelectionChanged

Event Value

SelectionChangedEventHandler

PreviewZoom

Occurs before the zoom has been changed.

Declaration

cs-api-definition
public event EventHandler<DiagramZoomEventArgs> PreviewZoom

Event Value

EventHandler<DiagramZoomEventArgs>

Resize

Occurs when an item is resized.

Declaration

cs-api-definition
public event EventHandler<ResizeRoutedEventArgs> Resize

Event Value

EventHandler<ResizeRoutedEventArgs>

Rotate

Occurs when an item is rotated.

Declaration

cs-api-definition
public event EventHandler<RotateRoutedEventArgs> Rotate

Event Value

EventHandler<RotateRoutedEventArgs>

SelectionBoundsChanged

Occurs when the selection bounds of the diagram changes.

Declaration

cs-api-definition
public event EventHandler SelectionBoundsChanged

Event Value

EventHandler

SelectionChanged

Occurs when the selection of the diagram changes.

Declaration

cs-api-definition
public event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler

Serialized

Occurs after the diagram has been serialized.

Declaration

cs-api-definition
public event RadRoutedEventHandler Serialized

Event Value

RadRoutedEventHandler

ShapeClicked

Occurs when shape is clicked.

Declaration

cs-api-definition
public event EventHandler<ShapeRoutedEventArgs> ShapeClicked

Event Value

EventHandler<ShapeRoutedEventArgs>

ShapeDeserialized

Occurs when a shape has been deserialized.

Declaration

cs-api-definition
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeDeserialized

Event Value

EventHandler<ShapeSerializationRoutedEventArgs>

Remarks

The event allows you to deserialize the additional data added, if any, using the ShapeSerialized event handler.

ShapeDoubleClicked

Occurs when a shape has been double-clicked.

Declaration

cs-api-definition
public event EventHandler<ShapeRoutedEventArgs> ShapeDoubleClicked

Event Value

EventHandler<ShapeRoutedEventArgs>

ShapeSerialized

Occurs when a shape has been serialized.

Declaration

cs-api-definition
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeSerialized

Event Value

EventHandler<ShapeSerializationRoutedEventArgs>

Remarks

This event allows you to add additional, application specific data to the serialization.

ViewportChanged

Occurs when the viewport has changed.

Declaration

cs-api-definition
public event EventHandler<PropertyEventArgs<Rect>> ViewportChanged

Event Value

EventHandler<PropertyEventArgs<Rect>>

VisualChildrenChanged

Occurs when [children changed].

Declaration

cs-api-definition
public event EventHandler VisualChildrenChanged

Event Value

EventHandler

ZoomChanged

Occurs when the zoom has been changed.

Declaration

cs-api-definition
public event EventHandler<RadRoutedPropertyChangedEventArgs<double>> ZoomChanged

Event Value

EventHandler<RadRoutedPropertyChangedEventArgs<double>>

Extension Methods

In this article
DefinitionConstructorsRadDiagram()FieldsActiveToolPropertyAdditionalContentActivatedEventAllowCopyPropertyAllowCutPropertyAllowDeletePropertyAllowPastePropertyAutoLayoutPropertyCommandExecutedEventConnectionBridgePropertyConnectionDeserializedEventConnectionEditTemplatePropertyConnectionEditTemplateSelectorPropertyConnectionManipulationCompletedEventConnectionManipulationStartedEventConnectionRoundedCornersPropertyConnectionSerializedEventConnectionStylePropertyConnectionStyleSelectorPropertyConnectionTemplatePropertyConnectionTemplateSelectorPropertyConnectorActivationChangedEventConnectorStylePropertyContainerShapeStylePropertyDeserializedEventDiagramLayoutCompletedEventDisplayMemberPathPropertyDragEventGraphSourcePropertyGroupStylePropertyGroupsChangedEventIsAdditionalContentVisiblePropertyIsBackgroundSurfaceVisiblePropertyIsConnectorsManipulationEnabledPropertyIsDraggingEnabledPropertyIsEditablePropertyIsInformationAdornerVisiblePropertyIsManipulationAdornerVisiblePropertyIsPanEnabledPropertyIsResizingEnabledPropertyIsRotationEnabledPropertyIsSnapToGridEnabledPropertyIsSnapToItemsEnabledPropertyIsZoomEnabledPropertyItemsChangedEventItemsChangingEventItemsPropertyMetadataDeserializedEventMetadataSerializedEventPanEventPositionChangedEventPositionPropertyPreviewAdditionalContentActivatedEventPreviewDragEventPreviewPanEventPreviewResizeEventPreviewRotateEventPreviewSelectionChangedEventPreviewZoomEventRectSelectionModePropertyResizeEventRotateEventRouteConnectionsPropertySelectedEventSelectedIndexPropertySelectedItemPropertySelectionChangedEventSelectionModePropertySelectionRectangleStylePropertySerializedEventShapeClickedEventShapeDeserializedEventShapeDoubleClickedEventShapeEditTemplatePropertyShapeEditTemplateSelectorPropertyShapeSerializedEventShapeStylePropertyShapeStyleSelectorPropertyShapeTemplatePropertyShapeTemplateSelectorPropertySnapXPropertySnapYPropertySupportTouchGesturesPropertyUnselectedEventViewportPropertyZoomChangedEventZoomPropertyPropertiesActiveToolAllowCopyAllowCutAllowDeleteAllowPasteAutoLayoutConnectionBridgeConnectionEditTemplateConnectionEditTemplateSelectorConnectionRoundedCornersConnectionStyleConnectionStyleSelectorConnectionTemplateConnectionTemplateSelectorConnectionsConnectorStyleContainerGeneratorContainerShapeStyleDisplayMemberPathGraphSourceGroupStyleGroupsIgnoreLinkDirectionIsAdditionalContentVisibleIsBackgroundSurfaceVisibleIsConnectorsManipulationEnabledIsDraggingEnabledIsEditableIsInformationAdornerVisibleIsManipulationAdornerVisibleIsMouseCapturedIsPanEnabledIsResizingEnabledIsRotationEnabledIsSnapToGridEnabledIsSnapToItemsEnabledIsZoomEnabledItemsMetadataPositionRectSelectionModeRouteConnectionsRoutingServiceSelectedIndexSelectedItemSelectedItemsSelectionBoundsSelectionModeSelectionRectangleStyleServiceLocatorShapeEditTemplateShapeEditTemplateSelectorShapeStyleShapeStyleSelectorShapeTemplateShapeTemplateSelectorShapesSnapXSnapYSupportTouchGesturesUndoRedoServiceViewportZoomMethodsAddConnection(IConnection, bool)AddConnection(IShape, IShape, bool)AddConnection(IShape, IShape, string, bool)AddConnection(IShape, IShape, string, string, bool)AddConnection(Point, Point, bool)AddGlidingConnection(IShape, IShape, bool)AddImageShape(Stream, Point)AddShape(IShape, Point?, bool)AddShape(object, ArrowShapeType, Point?, bool)AddShape(object, CommonShapeType, Point?, bool)AddShape(object, FlowChartShapeType, Point?, bool)AddShape(object, Geometry, Point?, bool)Align(Alignment, IEnumerable<IShape>)AutoFit()AutoFit(Thickness, bool)AutoFitAsync(Thickness, bool)BeginBatchTransformation()BringForward(IEnumerable<IDiagramItem>, bool)BringIntoView(Point, double, bool)BringIntoView(Rect, bool)BringIntoView(object, double, bool)BringToFront(IEnumerable<IDiagramItem>, bool)CleanContainerForItemOverride(FrameworkElement, object)Clear()CommitBatchTransformation(DiagramLayoutState, DiagramLayoutState, bool, bool, LayoutType, object)Copy()Cut()Delete()DeselectAll()Deserialize(SerializationInfo)Export(string)ExportToImage(Stream, BitmapEncoder, Rect?, Size, Brush, Thickness, double)GetConnectionContainerForItemOverride(object)GetShapeContainerForItemOverride(IContainerItem)GetShapeContainerForItemOverride(object)GetTextShapeContainerForItemOverride(object)Group(string, bool, params IGroupable[])Group(string, params IGroupable[])IsInViewport(IDiagramItem)IsItemItsOwnConnectionContainerOverride(object)IsItemItsOwnShapeContainerOverride(object)Layout(LayoutType, object)LayoutAsync(LayoutType, object)Load(string)OnApplyTemplate()OnCanExecuteDeleteCommandOverride(object, CanExecuteRoutedEventArgs)OnCreateAutomationPeer()OnDeleteCommandExecutedOverride(object, ExecutedRoutedEventArgs)OnInitialized(EventArgs)OnIsConnectorsManipulationEnabledChanged(bool, bool)OnKeyDownHandled(object, KeyEventArgs)OnKeyUpHandled(object, KeyEventArgs)OnMouseLeftButtonDown(MouseButtonEventArgs)OnMouseLeftButtonUp(MouseButtonEventArgs)OnMouseMove(MouseEventArgs)OnMouseWheel(MouseWheelEventArgs)OnPositionChanged(Point, Point)OnRouteConnectionsChanged(bool, bool)OnZoomChanged(double, double)Paste()PrepareConnectionContainerForItemOverride(FrameworkElement, object)PrepareShapeContainerForItemOverride(FrameworkElement, object)Print(RadDiagramPrintSettings)PublishDiagramEvent(DiagramEvent, object)Redo()RemoveConnection(IConnection, bool)RemoveShape(IShape, bool)ResetTheme()ResetViewport(bool)Save()Scroll(double, double)SelectAll()SendBackward(IEnumerable<IDiagramItem>, bool)SendToBack(IEnumerable<IDiagramItem>, bool)Serialize()Snap(IEnumerable<IShape>)Undo()Ungroup(bool, params IGroup[])Ungroup(params IGroup[])UpdateRectSelection(Rect)ZoomIn(double?, Point?, bool)ZoomOut(double?, Point?, bool)EventsAdditionalContentActivatedCommandExecutedConnectionDeserializedConnectionManipulationCompletedConnectionManipulationStartedConnectionSerializedConnectorActivationChangedDeserializedDiagramLayoutCompleteDragGraphSourceChangedGraphSourceChangingGroupsChangedItemsChangedItemsChangingMetadataDeserializedMetadataSerializedPanPositionChangedPreviewAdditionalContentActivatedPreviewDragPreviewPanPreviewResizePreviewRotatePreviewSelectionChangedPreviewZoomResizeRotateSelectionBoundsChangedSelectionChangedSerializedShapeClickedShapeDeserializedShapeDoubleClickedShapeSerializedViewportChangedVisualChildrenChangedZoomChangedExtension Methods
Not finding the help you need?
Contact Support