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

Represents the diagram control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
[TelerikToolboxCategory("Diagram")]
[Themable]
public class RadDiagram : Control, ISupportContainerGenerator<RadDiagramItem>, IGraphInternal, IGraph, ISerializable, ISupportManipulation

Inheritance: objectRadDiagram

Implements: IGraphIGraphInternalISerializableISupportContainerGenerator<RadDiagramItem>ISupportManipulation

Constructors

Initializes a new instance of the RadDiagram class.

C#
public RadDiagram()

Fields

ActiveToolProperty

DependencyProperty

Identifies the ActiveTool dependency property.

C#
public static readonly DependencyProperty ActiveToolProperty

Identifies the AdditionalContentOpened routed event.

C#
public static readonly RoutedEvent AdditionalContentActivatedEvent

AllowCopyProperty

DependencyProperty

Identifies the AllowCopy dependency property.

C#
public static readonly DependencyProperty AllowCopyProperty

AllowCutProperty

DependencyProperty

Identifies the AllowCut dependency property.

C#
public static readonly DependencyProperty AllowCutProperty

AllowDeleteProperty

DependencyProperty

Identifies the AllowDelete dependency property.

C#
public static readonly DependencyProperty AllowDeleteProperty

AllowPasteProperty

DependencyProperty

Identifies the AllowPaste dependency property.

C#
public static readonly DependencyProperty AllowPasteProperty

AutoLayoutProperty

DependencyProperty

Identifies the AutoLayout dependency property.

C#
public static readonly DependencyProperty AutoLayoutProperty

Identifies the CommandExecuted routed event.

C#
public static readonly RoutedEvent CommandExecutedEvent

ConnectionBridgeProperty

DependencyProperty

Identifies the Position dependency property.

C#
public static readonly DependencyProperty ConnectionBridgeProperty

Identifies the ConnectionDeserialized routed event.

C#
public static readonly RoutedEvent ConnectionDeserializedEvent

Identifies the ConnectionEditTemplate dependency property.

C#
public static readonly DependencyProperty ConnectionEditTemplateProperty

Identifies the ConnectionEditTemplateSelector dependency property.

C#
public static readonly DependencyProperty ConnectionEditTemplateSelectorProperty

Identifies the ConnectionManipulationCompleted routed event.

C#
public static readonly RoutedEvent ConnectionManipulationCompletedEvent

Identifies the ConnectionManipulationStartedEvent routed event.

C#
public static readonly RoutedEvent ConnectionManipulationStartedEvent

Identifies the RoundedCorners dependency property.

C#
public static readonly DependencyProperty ConnectionRoundedCornersProperty

Identifies the ConnectionSerialized routed event.

C#
public static readonly RoutedEvent ConnectionSerializedEvent

ConnectionStyleProperty

DependencyProperty

Identifies the ConnectionStyle dependency property.

C#
public static readonly DependencyProperty ConnectionStyleProperty

Identifies the ConnectionStyleSelector dependency property.

C#
public static readonly DependencyProperty ConnectionStyleSelectorProperty

ConnectionTemplateProperty

DependencyProperty

Identifies the ConnectionTemplate dependency property.

C#
public static readonly DependencyProperty ConnectionTemplateProperty

Identifies the ConnectionTemplateSelector dependency property.

C#
public static readonly DependencyProperty ConnectionTemplateSelectorProperty

Identifies the ConnectorActivationChanged routed event.

C#
public static readonly RoutedEvent ConnectorActivationChangedEvent

ConnectorStyleProperty

DependencyProperty

Identifies the ConnectorStyle dependency property.

C#
public static readonly DependencyProperty ConnectorStyleProperty

ContainerShapeStyleProperty

DependencyProperty

Identifies the ContainerShapeStyle dependency property.

C#
public static readonly DependencyProperty ContainerShapeStyleProperty

Identifies the Deserialized routed event.

C#
public static readonly RoutedEvent DeserializedEvent

Identifies the DiagramLayoutComplete routed event.

C#
public static readonly RoutedEvent DiagramLayoutCompletedEvent

DisplayMemberPathProperty

DependencyProperty

Identifies the DisplayMemberPath dependency property.

C#
public static readonly DependencyProperty DisplayMemberPathProperty

DragEvent

RoutedEvent

Identifies the DragEvent routed event.

C#
public static readonly RoutedEvent DragEvent

GraphSourceProperty

DependencyProperty

Identifies the GraphSource dependency property.

C#
public static readonly DependencyProperty GraphSourceProperty

Identifies the ItemsChanged routed event.

C#
public static readonly RoutedEvent GroupsChangedEvent

GroupStyleProperty

DependencyProperty

Identifies the SelectedGroupBrush dependency property.

C#
public static readonly DependencyProperty GroupStyleProperty

Identifies the IsAdditionalContentVisible dependency property.

C#
public static readonly DependencyProperty IsAdditionalContentVisibleProperty

Identifies the IsBackgroundSurfaceVisible dependency property.

C#
public static readonly DependencyProperty IsBackgroundSurfaceVisibleProperty

Identifies the IsConnectorsManipulationEnabled dependency property.

C#
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty

IsDraggingEnabledProperty

DependencyProperty

Identifies the IsDraggingEnabled dependency property.

C#
public static readonly DependencyProperty IsDraggingEnabledProperty

IsEditableProperty

DependencyProperty

Identifies the IsEditable dependency property.

C#
public static readonly DependencyProperty IsEditableProperty

Identifies the IsInformationAdornerVisible dependency property.

C#
public static readonly DependencyProperty IsInformationAdornerVisibleProperty

Identifies the IsManipulationAdornerVisible dependency property.

C#
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty

IsPanEnabledProperty

DependencyProperty

Identifies the IsPanEnabled dependency property.

C#
public static readonly DependencyProperty IsPanEnabledProperty

IsResizingEnabledProperty

DependencyProperty

Identifies the IsResizingEnabled dependency property.

C#
public static readonly DependencyProperty IsResizingEnabledProperty

IsRotationEnabledProperty

DependencyProperty

Identifies the IsRotationEnabled dependency property.

C#
public static readonly DependencyProperty IsRotationEnabledProperty

IsSnapToGridEnabledProperty

DependencyProperty

Identifies the IsSnapEnabled dependency property.

C#
public static readonly DependencyProperty IsSnapToGridEnabledProperty

Identifies the IsSnapToItemsEnabled dependency property.

C#
public static readonly DependencyProperty IsSnapToItemsEnabledProperty

IsZoomEnabledProperty

DependencyProperty

Identifies the IsZoomEnabled dependency property.

C#
public static readonly DependencyProperty IsZoomEnabledProperty

Identifies the ItemsChanged routed event.

C#
public static readonly RoutedEvent ItemsChangedEvent

Identifies the ItemsChanging routed event.

C#
public static readonly RoutedEvent ItemsChangingEvent

ItemsProperty

DependencyProperty

Identifies the Items dependency property.

C#
public static readonly DependencyProperty ItemsProperty

Identifies the MetadataDeserialized routed event.

C#
public static readonly RoutedEvent MetadataDeserializedEvent

Identifies the MetadataSerialized routed event.

C#
public static readonly RoutedEvent MetadataSerializedEvent

PanEvent

RoutedEvent

Identifies the PreviewPan routed event.

C#
public static readonly RoutedEvent PanEvent

Identifies the PositionChanged routed event.

C#
public static readonly RoutedEvent PositionChangedEvent

PositionProperty

DependencyProperty

Identifies the Position dependency property.

C#
public static readonly DependencyProperty PositionProperty

Identifies the PreviewAdditionalContentOpened routed event.

C#
public static readonly RoutedEvent PreviewAdditionalContentActivatedEvent

PreviewDragEvent

RoutedEvent

Identifies the PreviewDrag routed event.

C#
public static readonly RoutedEvent PreviewDragEvent

PreviewPanEvent

RoutedEvent

Identifies the PreviewPan routed event.

C#
public static readonly RoutedEvent PreviewPanEvent

Identifies the PreviewResize routed event.

C#
public static readonly RoutedEvent PreviewResizeEvent

Identifies the PreviewRotate routed event.

C#
public static readonly RoutedEvent PreviewRotateEvent

Identifies the PreviewSelectionChanged routed event.

C#
public static readonly RoutedEvent PreviewSelectionChangedEvent

PreviewZoomEvent

RoutedEvent

Identifies the PreviewZoom routed event.

C#
public static readonly RoutedEvent PreviewZoomEvent

RectSelectionModeProperty

DependencyProperty

Identifies the RectSelectionMode dependency property.

C#
public static readonly DependencyProperty RectSelectionModeProperty

ResizeEvent

RoutedEvent

Identifies the Resize routed event.

C#
public static readonly RoutedEvent ResizeEvent

RotateEvent

RoutedEvent

Identifies the Rotate routed event.

C#
public static readonly RoutedEvent RotateEvent

RouteConnectionsProperty

DependencyProperty

Identifies the RouteConnections dependency property.

C#
public static readonly DependencyProperty RouteConnectionsProperty

SelectedEvent

RoutedEvent

Identifies the Selected routed event.

C#
public static readonly RoutedEvent SelectedEvent

SelectedIndexProperty

DependencyProperty

Identifies the SelectedIndex dependency property.

C#
public static readonly DependencyProperty SelectedIndexProperty

SelectedItemProperty

DependencyProperty

Identifies the SelectedItem dependency property.

C#
public static readonly DependencyProperty SelectedItemProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

SelectionModeProperty

DependencyProperty

Identifies the SelectionMode dependency property.

C#
public static readonly DependencyProperty SelectionModeProperty

Identifies the SelectionRectangleStyle dependency property.

C#
public static readonly DependencyProperty SelectionRectangleStyleProperty

SerializedEvent

RoutedEvent

Identifies the Serialized routed event.

C#
public static readonly RoutedEvent SerializedEvent

Identifies the ShapeClicked routed event.

C#
public static readonly RoutedEvent ShapeClickedEvent

Identifies the ShapeDeserialized routed event.

C#
public static readonly RoutedEvent ShapeDeserializedEvent

Identifies the ShapeDoubleClicked routed event.

C#
public static readonly RoutedEvent ShapeDoubleClickedEvent

ShapeEditTemplateProperty

DependencyProperty

Identifies the ShapeEditTemplate dependency property.

C#
public static readonly DependencyProperty ShapeEditTemplateProperty

Identifies the ShapeEditTemplateSelector dependency property.

C#
public static readonly DependencyProperty ShapeEditTemplateSelectorProperty

Identifies the ShapeSerialized routed event.

C#
public static readonly RoutedEvent ShapeSerializedEvent

ShapeStyleProperty

DependencyProperty

Identifies the ShapeStyle dependency property.

C#
public static readonly DependencyProperty ShapeStyleProperty

ShapeStyleSelectorProperty

DependencyProperty

Identifies the ShapeStyleSelector dependency property.

C#
public static readonly DependencyProperty ShapeStyleSelectorProperty

ShapeTemplateProperty

DependencyProperty

Identifies the ShapeTemplate dependency property.

C#
public static readonly DependencyProperty ShapeTemplateProperty

Identifies the ShapeTemplateSelector dependency property.

C#
public static readonly DependencyProperty ShapeTemplateSelectorProperty

SnapXProperty

DependencyProperty

Identifies the SnapX dependency property.

C#
public static readonly DependencyProperty SnapXProperty

SnapYProperty

DependencyProperty

Identifies the SnapY dependency property.

C#
public static readonly DependencyProperty SnapYProperty

Identifies the SupportTouchGestures dependency property.

C#
public static readonly DependencyProperty SupportTouchGesturesProperty

UnselectedEvent

RoutedEvent

Identifies the Unselected routed event.

C#
public static readonly RoutedEvent UnselectedEvent

ViewportProperty

DependencyProperty

Identifies the Viewport dependency property.

C#
public static readonly DependencyProperty ViewportProperty

ZoomChangedEvent

RoutedEvent

Identifies the ZoomChanged routed event.

C#
public static readonly RoutedEvent ZoomChangedEvent

ZoomProperty

DependencyProperty

Identifies the Zoom dependency property.

C#
public static readonly DependencyProperty ZoomProperty

Properties

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

C#
public MouseTool ActiveTool { get; set; }

Gets or sets a value indicating whether copying is allowed.

C#
public bool AllowCopy { get; set; }
Property Value:

True if copying is allowed; otherwise, false.

Implements: ISupportManipulation.AllowCopy

Gets or sets a value indicating whether cutting is allowed.

C#
public bool AllowCut { get; set; }
Property Value:

True if cutting is allowed; otherwise, false.

Implements: ISupportManipulation.AllowCut

Gets or sets a value indicating whether deleting is allowed.

C#
public bool AllowDelete { get; set; }
Property Value:

True if deleting is allowed; otherwise, false.

Implements: ISupportManipulation.AllowDelete

Gets or sets a value indicating whether pasting is allowed.

C#
public bool AllowPaste { get; set; }
Property Value:

True if pasting is allowed; otherwise, false.

Implements: ISupportManipulation.AllowPaste

Gets or sets the auto layout.

C#
public bool AutoLayout { get; set; }

Gets or sets the connection bridge type.

C#
public BridgeType ConnectionBridge { get; set; }

Implements: IGraphInternal.ConnectionBridge

Gets or sets the connection edit template.

C#
public DataTemplate ConnectionEditTemplate { get; set; }
Property Value:

The connection edit template.

ConnectionEditTemplateSelector

DataTemplateSelector

Gets or sets the connection edit template selector.

C#
public DataTemplateSelector ConnectionEditTemplateSelector { get; set; }
Property Value:

The connection edit template selector.

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

C#
public bool ConnectionRoundedCorners { get; set; }

Implements: IGraphInternal.ConnectionRoundedCorners

Remarks:

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

Gets the connections.

C#
public ConnectionCollection Connections { get; }

Implements: IGraph.Connections

Gets or sets the connection style.

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

The connection style.

Gets or sets the connection style selector.

C#
public StyleSelector ConnectionStyleSelector { get; set; }
Property Value:

The connection style selector.

ConnectionTemplate

DataTemplate

Gets or sets the connection template.

C#
public DataTemplate ConnectionTemplate { get; set; }
Property Value:

The connection template.

ConnectionTemplateSelector

DataTemplateSelector

Gets or sets the connection template selector.

C#
public DataTemplateSelector ConnectionTemplateSelector { get; set; }
Property Value:

The connection template selector.

Gets or sets the connector style.

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

The connector style.

Gets the container generator.

C#
public IContainerGenerator<RadDiagramItem> ContainerGenerator { get; }

Gets or sets the container shape style.

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

The container shape style.

Gets or sets the display member path.

C#
public string DisplayMemberPath { get; set; }
Property Value:

The display member path.

Gets or sets the graph source.

C#
public IGraphSource GraphSource { get; set; }
Property Value:

The graph source.

Implements: IGraph.GraphSource

Gets the group collection.

C#
public IEnumerable<IGroup> Groups { get; }

Implements: IGraph.Groups

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

C#
public Style GroupStyle { get; set; }

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

C#
public bool IgnoreLinkDirection { get; set; }
Property Value:

True if link directions are ignored; otherwise, false.

Implements: IGraph.IgnoreLinkDirection

Gets a value indicating whether the additional content visible.

C#
public bool IsAdditionalContentVisible { get; }

Gets or sets whether the background grid is visible.

C#
public bool IsBackgroundSurfaceVisible { get; set; }

Implements: IGraph.IsBackgroundSurfaceVisible

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

C#
public bool IsConnectorsManipulationEnabled { get; set; }
Property Value:

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

Implements: ISupportManipulation.IsConnectorsManipulationEnabled

Gets or sets a value indicating whether dragging is enabled.

C#
public bool IsDraggingEnabled { get; set; }
Property Value:

True if dragging is enabled; otherwise, false.

Implements: ISupportManipulation.IsDraggingEnabled

Gets or sets a value indicating whether editing is enabled.

C#
public bool IsEditable { get; set; }
Property Value:

True if editing is enabled; otherwise, false.

Implements: IGraph.IsEditable

Gets or sets whether the information adorner is visible.

C#
public bool IsInformationAdornerVisible { get; set; }

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

C#
public bool IsManipulationAdornerVisible { get; set; }
Property Value:

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

Implements: ISupportManipulation.IsManipulationAdornerVisible

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

C#
public bool IsMouseCaptured { get; set; }
Property Value:

True if the mouse is captured; otherwise, false.

Implements: IGraph.IsMouseCaptured

Gets or sets a value indicating whether panning is enabled.

C#
public bool IsPanEnabled { get; set; }
Property Value:

True if panning is enabled; otherwise, false.

Implements: IGraph.IsPanEnabled

Gets or sets a value indicating whether resizing is enabled.

C#
public bool IsResizingEnabled { get; set; }
Property Value:

True if resizing is enabled; otherwise, false.

Implements: ISupportManipulation.IsResizingEnabled

Gets or sets a value indicating whether rotation is enabled.

C#
public bool IsRotationEnabled { get; set; }
Property Value:

true if this rotation is enabled; otherwise, false.

Implements: ISupportManipulation.IsRotationEnabled

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

C#
public bool IsSnapToGridEnabled { get; set; }
Property Value:

True if grid snapping is enabled; otherwise, false.

Implements: IGraph.IsSnapToGridEnabled

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

C#
public bool IsSnapToItemsEnabled { get; set; }

Implements: IGraph.IsSnapToItemsEnabled

Gets or sets a value indicating whether zooming is enabled.

C#
public bool IsZoomEnabled { get; set; }
Property Value:

True if zooming is enabled; otherwise, false.

Implements: IGraph.IsZoomEnabled

Gets or sets the diagramming items.

C#
public DiagramItemCollection Items { get; }
Property Value:

The items.

Implements: IGraph.Items

Gets the diagram metadata.

C#
public DiagramMetadata Metadata { get; }

Implements: IGraph.Metadata

Gets or sets the position.

C#
public Point Position { get; set; }
Property Value:

The position.

Implements: IGraph.Position

Gets or sets the rectangle selection mode.

C#
public RectSelectionMode RectSelectionMode { get; set; }

Implements: IGraph.RectSelectionMode

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

C#
public bool RouteConnections { get; set; }

Implements: IGraphInternal.RouteConnections

Remarks:

Setting this property has no effect on other connection types.

C#
public IRoutingService RoutingService { get; }

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

C#
public int SelectedIndex { get; set; }

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

C#
public object SelectedItem { get; set; }

Gets the selected items.

C#
public IEnumerable<object> SelectedItems { get; }

Gets the starting selection bounds.

C#
public Rect SelectionBounds { get; }

Gets or sets the selection mode.

C#
public SelectionMode SelectionMode { get; set; }

Implements: IGraph.SelectionMode

Gets or sets the style of the selection rectangle.

C#
public Style SelectionRectangleStyle { get; set; }

Gets the service locator.

C#
public IServiceLocator ServiceLocator { get; }

Implements: IGraphInternal.ServiceLocator

ShapeEditTemplate

DataTemplate

Gets or sets the shape edit template.

C#
public DataTemplate ShapeEditTemplate { get; set; }
Property Value:

The shape edit template.

ShapeEditTemplateSelector

DataTemplateSelector

Gets or sets the shape edit template selector.

C#
public DataTemplateSelector ShapeEditTemplateSelector { get; set; }
Property Value:

The shape edit template selector.

Gets the shapes.

C#
public ShapeCollection Shapes { get; }

Implements: IGraph.Shapes

Gets or sets the shape style.

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

The shape style.

ShapeStyleSelector

StyleSelector

Gets or sets the shape style selector.

C#
public StyleSelector ShapeStyleSelector { get; set; }
Property Value:

The shape style selector.

ShapeTemplate

DataTemplate

Gets or sets the shape template.

C#
public DataTemplate ShapeTemplate { get; set; }
Property Value:

The shape template.

ShapeTemplateSelector

DataTemplateSelector

Gets or sets the shape template selector.

C#
public DataTemplateSelector ShapeTemplateSelector { get; set; }
Property Value:

The shape template selector.

Gets or sets the horizontal snapping distance.

C#
public int SnapX { get; set; }
Property Value:

The horizontal snapping distance.

Implements: IGraph.SnapX

Gets or sets the vertical snapping distance.

C#
public int SnapY { get; set; }
Property Value:

The vertical snapping distance.

Implements: IGraph.SnapY

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

C#
public bool SupportTouchGestures { get; set; }

Gets the undo redo service.

C#
public IUndoRedoService UndoRedoService { get; }

Gets the bounds of the viewport.

C#
public Rect Viewport { get; }

Implements: IGraph.Viewport

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.

C#
public double Zoom { get; set; }

Implements: IGraph.Zoom

Methods

Adds a new connection to the diagram.

C#
public IConnection AddConnection(IConnection connection, bool isUndoable = false)
Parameters:connectionIConnection

The connection to be added.

isUndoablebool

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

Returns:

IConnection

Implements: IGraph.AddConnection(IConnection, bool)

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

C#
public IConnection AddConnection(IShape source, IShape target, bool isUndoable = false)
Parameters:sourceIShape

The source or start shape of the connection.

targetIShape

The target or end shape of the connection.

isUndoablebool

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

Returns:

IConnection

Implements: IGraph.AddConnection(IShape, IShape, bool)

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

C#
public IConnection AddConnection(IShape source, IShape target, string connectorsPosition, bool isUndoable = false)
Parameters:sourceIShape

The source or start shape of the connection.

targetIShape

The target or end shape of the connection.

connectorsPositionstring

The connectors position.

isUndoablebool

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

Returns:

IConnection

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

C#
public IConnection AddConnection(IShape source, IShape target, string sourceConnector, string targetConnector, bool isUndoable = false)
Parameters:sourceIShape

The source.

targetIShape

The target.

sourceConnectorstring

The source connector position.

targetConnectorstring

The target connector position.

isUndoablebool

If set to true is undoable.

Returns:

IConnection

Adds a floating connection.

C#
public IConnection AddConnection(Point startPoint, Point endPoint, bool isUndoable = false)
Parameters:startPointPoint

The source (starting) point of the connection.

endPointPoint

The target (end) point of the connection.

isUndoablebool

True, if this action is undoable.

Returns:

IConnection

Returns the added connection.

Implements: IGraph.AddConnection(Point, Point, bool)

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

C#
public IConnection AddGlidingConnection(IShape source, IShape target, bool isUndoable = false)
Parameters:sourceIShape

The source or start shape of the connection.

targetIShape

The target or end shape of the connection.

isUndoablebool

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.

Adds a shape with image content.

C#
public void AddImageShape(Stream source, Point position)
Parameters:sourceStreampositionPoint

Adds the given shape to the diagram.

C#
public IShape AddShape(IShape shape, Point? position = null, bool isUndoable = false)
Parameters:shapeIShape

The shape to add.

positionPoint?

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

isUndoablebool

If set to true the action is undoable.

Returns:

IShape

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

Adds a new shape to the diagram.

C#
public IShape AddShape(object content, ArrowShapeType type, Point? position = null, bool isUndoable = false)
Parameters:contentobject

The content of the shape.

typeArrowShapeType

The common shape type.

positionPoint?

The position.

isUndoablebool

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.

Adds a new shape to the diagram.

C#
public IShape AddShape(object content, CommonShapeType type, Point? position = null, bool isUndoable = false)
Parameters:contentobject

The content of the shape.

typeCommonShapeType

The common shape type.

positionPoint?

The position.

isUndoablebool

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.

Adds a new shape to the diagram.

C#
public IShape AddShape(object content, FlowChartShapeType type, Point? position = null, bool isUndoable = false)
Parameters:contentobject

The content of the shape.

typeFlowChartShapeType

The common shape type.

positionPoint?

The position.

isUndoablebool

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.

Adds a new shape to the diagram.

C#
public IShape AddShape(object content, Geometry geometry = null, Point? position = null, bool isUndoable = false)
Parameters:contentobject

The content of the shape.

geometryGeometry

The geometry.

positionPoint?

The position.

isUndoablebool

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.

Aligns the given shapes.

C#
public void Align(Alignment alignment, IEnumerable<IShape> shapes)
Parameters:alignmentAlignmentshapesIEnumerable<IShape>

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

C#
public void AutoFit()

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.

C#
public void AutoFit(Thickness margin, bool useAnimation = true)
Parameters:marginThickness

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

useAnimationbool

Determines whether animations should be used.

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.

C#
public void AutoFitAsync(Thickness margin, bool useAnimation = true)
Parameters:marginThickness

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

useAnimationbool

Determines whether animations should be used.

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.

C#
public DiagramLayoutState BeginBatchTransformation()
Returns:

DiagramLayoutState

Implements: IGraph.BeginBatchTransformation()

Brings the items forward.

C#
public void BringForward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters:itemsIEnumerable<IDiagramItem>isUndoablebool

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

C#
public bool BringIntoView(object item, double zoomLevel = 1, bool useAnimation = true)
Parameters:itemobject

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.

zoomLeveldouble

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

useAnimationbool

Determines whether an animation will be used.

Returns:

bool

Whether the operation has bee executed successfully or not.

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

C#
public bool BringIntoView(Point position, double zoomLevel = 1, bool useAnimation = true)
Parameters:positionPoint

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.

zoomLeveldouble

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

useAnimationbool

Determines whether an animation will be used.

Returns:

bool

Whether the operation has bee executed successfully or not.

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.

C#
public bool BringIntoView(Rect newViewPort, bool useAnimation = true)
Parameters:newViewPortRect

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

useAnimationbool

Determines whether an animation will be used.

Returns:

bool

Whether the operation has bee executed successfully or not.

Brings the items to front.

C#
public void BringToFront(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters:itemsIEnumerable<IDiagramItem>isUndoablebool

Cleans the container for item override.

C#
protected virtual void CleanContainerForItemOverride(FrameworkElement container, object item)
Parameters:containerFrameworkElement

The container.

itemobject

The item.

Clears the diagram and resets the document.

C#
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.

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

C#
public void CommitBatchTransformation(DiagramLayoutState initialState, DiagramLayoutState finalState, bool animate = false, bool execute = true, LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters:initialStateDiagramLayoutState

The initial state.

finalStateDiagramLayoutState

The final state.

animatebool

If set to true the layout will be animated.

executebool

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

typeLayoutType

The layout type that has been applied.

settingsobject

The layout specific settings used for the layout.

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

Remarks:

The animation tremendously decreases the performance.

Copies the currently selected items of the diagram.

C#
public void Copy()

Cuts the currently selected items of the diagram.

C#
public void Cut()

Deletes the currently selected items of the diagram.

C#
public virtual void Delete()

Deselects all shapes in the diagram.

C#
public void DeselectAll()

Deserializes the specified info.

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

The info.

Implements: ISerializable.Deserialize(SerializationInfo)

Exports the Diagram into png or bmp.

C#
public void Export(string exportFormat)
Parameters:exportFormatstring

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

C#
public void ExportToImage(Stream stream, BitmapEncoder encoder = null, Rect? enclosingBounds = null, Size returnImageSize = null, Brush backgroundBrush = null, Thickness margin = null, double dpi = 96)
Parameters:streamStream

The stream to write the image to.

encoderBitmapEncoder

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

enclosingBoundsRect?

The bound of the diagram which should be exported.

returnImageSizeSize

The size of the exported image.

backgroundBrushBrush

The background brush to use.

marginThickness

The margin around the exported image.

dpidouble

The quality of the image.

Gets the connection container for item override.

C#
protected virtual IConnection GetConnectionContainerForItemOverride(object item)
Parameters:itemobject

The item.

Returns:

IConnection

Gets the 'container shape' container for item override.

C#
protected virtual IContainerShape GetShapeContainerForItemOverride(IContainerItem item)
Parameters:itemIContainerItem

The item.

Returns:

IContainerShape

Gets the shape container for item override.

C#
protected virtual IShape GetShapeContainerForItemOverride(object item)
Parameters:itemobject

The item.

Returns:

IShape

Gets the text shape container for item override.

C#
protected virtual IShape GetTextShapeContainerForItemOverride(object item)
Parameters:itemobject

The item.

Returns:

IShape

Groups the specified items.

C#
public IGroup Group(string groupName = null, bool isUndoable = false, params IGroupable[] items)
Parameters:groupNamestring

Name of the new group.

isUndoablebool

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

itemsIGroupable[]

The groups items to ungroup.

Returns:

IGroup

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

Groups the specified items.

C#
public IGroup Group(string groupName = null, params IGroupable[] items)
Parameters:groupNamestring

Name of the new group.

itemsIGroupable[]

The groups items to ungroup.

Returns:

IGroup

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

Checks if the diagram item is in the viewport.

C#
public bool IsInViewport(IDiagramItem item)
Parameters:itemIDiagramItemReturns:

bool

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

C#
protected virtual bool IsItemItsOwnConnectionContainerOverride(object item)
Parameters:itemobject

The item.

Returns:

bool

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

Determines whether the item is a container on its own.

C#
protected virtual bool IsItemItsOwnShapeContainerOverride(object item)
Parameters:itemobject

The item.

Returns:

bool

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

Organizes the diagram using the specified layout.

C#
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters:typeLayoutType

The layout type to apply.

settingsobject

The settings specific to the layout type.

Organizes the diagram using the specified layout asynchronously.

C#
public void LayoutAsync(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters:typeLayoutType

The layout type to apply.

settingsobject

The settings specific to the layout type.

Loads the specified serialization string.

C#
public void Load(string serializationValue)
Parameters:serializationValuestring

The serialization value.

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

C#
public override void OnApplyTemplate()

Called on can execute delete command.

C#
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)
Parameters:senderobjecteCanExecuteRoutedEventArgs

Creates a peer associated with this object.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

An instance of the .

Called when delete command is executed.

C#
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)
Parameters:senderobjecteExecutedRoutedEventArgs

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called on is connectors manipulation enabled property changed.

C#
protected virtual void OnIsConnectorsManipulationEnabledChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The old value.

newValuebool

The new value.

C#
protected virtual void OnKeyDownHandled(object sender, KeyEventArgs e)
Parameters:senderobjecteKeyEventArgs
C#
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)
Parameters:senderobjecteKeyEventArgs

Called before the event occurs.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

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

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

The MouseWheelEventArgs instance containing the event data.

Called when the Position property changes.

C#
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters:oldPositionPointnewPositionPoint

Called on route connections property change.

C#
protected virtual void OnRouteConnectionsChanged(bool newValue, bool oldValue)
Parameters:newValuebool

The new value.

oldValuebool

The old value.

Called when the Zoomproperty changes.

C#
protected virtual void OnZoomChanged(double oldZoom, double newZoom)
Parameters:oldZoomdoublenewZoomdouble

Pastes the content of the clipboard onto the diagram.

C#
public virtual void Paste()

Prepares the container for item override.

C#
protected virtual void PrepareConnectionContainerForItemOverride(FrameworkElement container, object item)
Parameters:containerFrameworkElement

The container.

itemobject

The item.

Prepares the container for item override.

C#
protected virtual void PrepareShapeContainerForItemOverride(FrameworkElement container, object item)
Parameters:containerFrameworkElement

The container.

itemobject

The item.

Print the diagram.

C#
public bool Print(RadDiagramPrintSettings printSettings = null)
Parameters:printSettingsRadDiagramPrintSettings

The print settings.

Returns:

bool

True when the printing is successful, False otherwise.

Raises generic event.

C#
protected virtual bool PublishDiagramEvent(DiagramEvent diagramEvent, object args)
Parameters:diagramEventDiagramEventargsobjectReturns:

bool

Performs redo on the last undone action.

C#
public void Redo()

Removes the connection.

C#
public void RemoveConnection(IConnection connection, bool isUndoable = false)
Parameters:connectionIConnection

The connection.

isUndoablebool

If set to true the action is undoable.

Implements: IGraph.RemoveConnection(IConnection, bool)

Removes the shape.

C#
public void RemoveShape(IShape shape, bool isUndoable = false)
Parameters:shapeIShape

The shape.

isUndoablebool

If set to true the action is undoable.

Implements: IGraph.RemoveShape(IShape, bool)

Resets the theme.

C#
public void ResetTheme()

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

C#
public void ResetViewport(bool useAnimation = true)
Parameters:useAnimationbool

Determines whether an animation will be used.

Saves the diagram.

C#
public string Save()
Returns:

string

Returns the serialization string.

Scrolls with specified horizontal and vertical offset.

C#
public void Scroll(double horizontalOffset, double verticalOffset)
Parameters:horizontalOffsetdouble

The horizontal offset.

verticalOffsetdouble

The vertical offset.

Selects all shapes in the diagram.

C#
public void SelectAll()

Sends the items backward.

C#
public void SendBackward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters:itemsIEnumerable<IDiagramItem>isUndoablebool

Sends the items to back.

C#
public void SendToBack(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters:itemsIEnumerable<IDiagramItem>isUndoablebool

Serializes this instance.

C#
public virtual SerializationInfo Serialize()
Returns:

SerializationInfo

Implements: ISerializable.Serialize()

Snaps the specified shapes.

C#
public void Snap(IEnumerable<IShape> shapes)
Parameters:shapesIEnumerable<IShape>

Performs undo on the last action.

C#
public void Undo()

Ungroups the specified items.

C#
public void Ungroup(bool isUndoable, params IGroup[] groups)
Parameters:isUndoablebool

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

groupsIGroup[]

The groups items to ungroup.

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

Ungroups the specified items.

C#
public void Ungroup(params IGroup[] groups)
Parameters:groupsIGroup[]

The groups items to ungroup.

Implements: IGraph.Ungroup(params IGroup[])

Updates the rectangle selection.

C#
protected void UpdateRectSelection(Rect bounds)
Parameters:boundsRect

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

C#
public void ZoomIn(double? factor = null, Point? targetPoint = null, bool useAnimation = true)
Parameters:factordouble?

The value by which to change Zoom property.

targetPointPoint?

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

useAnimationbool

Determines whether animation should be used.

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

C#
public void ZoomOut(double? factor = null, Point? targetPoint = null, bool useAnimation = true)
Parameters:factordouble?

The value by which to change Zoom property.

targetPointPoint?

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

useAnimationbool

Determines whether animation should be used.

Events

Occurs when AdditionContent is activated.

C#
public event EventHandler<AdditionalContentActivatedEventArgs> AdditionalContentActivated

Occurs when a command is executed.

C#
public event EventHandler<CommandRoutedEventArgs> CommandExecuted

Occurs when a connection has been deserialized.

C#
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionDeserialized
Remarks:

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

Occurs when the connection manipulation has completed.

C#
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationCompleted

Occurs before the connection manipulation has started.

C#
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationStarted

Occurs when a connection has been serialized.

C#
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionSerialized
Remarks:

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

Occurs after a connector activation or deactivation.

C#
public event EventHandler<ConnectorActivationChangedEventArgs> ConnectorActivationChanged

Occurs when the diagram has been deserialized.

C#
public event RadRoutedEventHandler Deserialized

DiagramLayoutComplete

RoutedEventHandler

Occurs when the diagram layout has completed.

C#
public event RoutedEventHandler DiagramLayoutComplete

Occurs when an item is dragged.

C#
public event EventHandler<DragRoutedEventArgs> Drag

Occurs when the graph source has changed.

C#
public event EventHandler GraphSourceChanged

Occurs when the graph source begins changing.

C#
public event EventHandler GraphSourceChanging

Occurs when count of the groups change.

C#
public event EventHandler<DiagramItemsChangedEventArgs> GroupsChanged

Occurs when count of the items change.

C#
public event EventHandler<DiagramItemsChangedEventArgs> ItemsChanged

Occurs while the diagram items are changing.

C#
public event EventHandler<DiagramItemsChangingEventArgs> ItemsChanging

Occurs when the diagram's metadata has been deserialized.

C#
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataDeserialized
Remarks:

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

Occurs when the diagram's metadata has been serialized.

C#
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataSerialized
Remarks:

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

Occurs after the diagram is panned.

C#
public event EventHandler<PositionChangedRoutedEventArgs> Pan

Occurs when the position has changed.

C#
public event EventHandler<PositionChangedRoutedEventArgs> PositionChanged

Occurs when AdditionContent is about to be activated.

C#
public event EventHandler<AdditionalContentActivatedEventArgs> PreviewAdditionalContentActivated

Occurs before an item is dragged.

C#
public event EventHandler<DragRoutedEventArgs> PreviewDrag

Occurs before the diagram is panned.

C#
public event EventHandler<PositionChangedRoutedEventArgs> PreviewPan

Occurs before an item is resized.

C#
public event EventHandler<ResizeRoutedEventArgs> PreviewResize

Occurs before an item is rotated.

C#
public event EventHandler<RadRoutedEventArgs> PreviewRotate

PreviewSelectionChanged

SelectionChangedEventHandler

Occurs when the selection of the diagram starts changing.

C#
public event SelectionChangedEventHandler PreviewSelectionChanged

Occurs before the zoom has been changed.

C#
public event EventHandler<DiagramZoomEventArgs> PreviewZoom

Occurs when an item is resized.

C#
public event EventHandler<ResizeRoutedEventArgs> Resize

Occurs when an item is rotated.

C#
public event EventHandler<RotateRoutedEventArgs> Rotate

Occurs when the selection bounds of the diagram changes.

C#
public event EventHandler SelectionBoundsChanged

SelectionChanged

SelectionChangedEventHandler

Occurs when the selection of the diagram changes.

C#
public event SelectionChangedEventHandler SelectionChanged

Occurs after the diagram has been serialized.

C#
public event RadRoutedEventHandler Serialized

Occurs when shape is clicked.

C#
public event EventHandler<ShapeRoutedEventArgs> ShapeClicked

Occurs when a shape has been deserialized.

C#
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeDeserialized
Remarks:

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

Occurs when a shape has been double-clicked.

C#
public event EventHandler<ShapeRoutedEventArgs> ShapeDoubleClicked

Occurs when a shape has been serialized.

C#
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeSerialized
Remarks:

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

ViewportChanged

EventHandler<PropertyEventArgs<Rect>>

Occurs when the viewport has changed.

C#
public event EventHandler<PropertyEventArgs<Rect>> ViewportChanged

Occurs when [children changed].

C#
public event EventHandler VisualChildrenChanged

ZoomChanged

EventHandler<RadRoutedPropertyChangedEventArgs<double>>

Occurs when the zoom has been changed.

C#
public event EventHandler<RadRoutedPropertyChangedEventArgs<double>> ZoomChanged

Extension Methods

In this article
DefinitionConstructorsRadDiagram()FieldsActiveToolPropertyAdditionalContentActivatedEventAllowCopyPropertyAllowCutPropertyAllowDeletePropertyAllowPastePropertyAutoLayoutPropertyCommandExecutedEventConnectionBridgePropertyConnectionDeserializedEventConnectionEditTemplatePropertyConnectionEditTemplateSelectorPropertyConnectionManipulationCompletedEventConnectionManipulationStartedEventConnectionRoundedCornersPropertyConnectionSerializedEventConnectionStylePropertyConnectionStyleSelectorPropertyConnectionTemplatePropertyConnectionTemplateSelectorPropertyConnectorActivationChangedEventConnectorStylePropertyContainerShapeStylePropertyDeserializedEventDiagramLayoutCompletedEventDisplayMemberPathPropertyDragEventGraphSourcePropertyGroupsChangedEventGroupStylePropertyIsAdditionalContentVisiblePropertyIsBackgroundSurfaceVisiblePropertyIsConnectorsManipulationEnabledPropertyIsDraggingEnabledPropertyIsEditablePropertyIsInformationAdornerVisiblePropertyIsManipulationAdornerVisiblePropertyIsPanEnabledPropertyIsResizingEnabledPropertyIsRotationEnabledPropertyIsSnapToGridEnabledPropertyIsSnapToItemsEnabledPropertyIsZoomEnabledPropertyItemsChangedEventItemsChangingEventItemsPropertyMetadataDeserializedEventMetadataSerializedEventPanEventPositionChangedEventPositionPropertyPreviewAdditionalContentActivatedEventPreviewDragEventPreviewPanEventPreviewResizeEventPreviewRotateEventPreviewSelectionChangedEventPreviewZoomEventRectSelectionModePropertyResizeEventRotateEventRouteConnectionsPropertySelectedEventSelectedIndexPropertySelectedItemPropertySelectionChangedEventSelectionModePropertySelectionRectangleStylePropertySerializedEventShapeClickedEventShapeDeserializedEventShapeDoubleClickedEventShapeEditTemplatePropertyShapeEditTemplateSelectorPropertyShapeSerializedEventShapeStylePropertyShapeStyleSelectorPropertyShapeTemplatePropertyShapeTemplateSelectorPropertySnapXPropertySnapYPropertySupportTouchGesturesPropertyUnselectedEventViewportPropertyZoomChangedEventZoomPropertyPropertiesActiveToolAllowCopyAllowCutAllowDeleteAllowPasteAutoLayoutConnectionBridgeConnectionEditTemplateConnectionEditTemplateSelectorConnectionRoundedCornersConnectionsConnectionStyleConnectionStyleSelectorConnectionTemplateConnectionTemplateSelectorConnectorStyleContainerGeneratorContainerShapeStyleDisplayMemberPathGraphSourceGroupsGroupStyleIgnoreLinkDirectionIsAdditionalContentVisibleIsBackgroundSurfaceVisibleIsConnectorsManipulationEnabledIsDraggingEnabledIsEditableIsInformationAdornerVisibleIsManipulationAdornerVisibleIsMouseCapturedIsPanEnabledIsResizingEnabledIsRotationEnabledIsSnapToGridEnabledIsSnapToItemsEnabledIsZoomEnabledItemsMetadataPositionRectSelectionModeRouteConnectionsRoutingServiceSelectedIndexSelectedItemSelectedItemsSelectionBoundsSelectionModeSelectionRectangleStyleServiceLocatorShapeEditTemplateShapeEditTemplateSelectorShapesShapeStyleShapeStyleSelectorShapeTemplateShapeTemplateSelectorSnapXSnapYSupportTouchGesturesUndoRedoServiceViewportZoomMethodsAddConnection(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(object, double, bool)BringIntoView(Point, double, bool)BringIntoView(Rect, 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