ClassRadDiagram
Represents the diagram control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Diagrams.dll
Syntax:
[TelerikToolboxCategory("Diagram")]
[Themable]
public class RadDiagram : Control, ISupportContainerGenerator<RadDiagramItem>, IGraphInternal, IGraph, ISerializable, ISupportManipulation
Inheritance: objectRadDiagram
Implements:
Constructors
RadDiagram()
Initializes a new instance of the RadDiagram class.
Declaration
public RadDiagram()
Fields
ActiveToolProperty
Identifies the ActiveTool dependency property.
Declaration
public static readonly DependencyProperty ActiveToolProperty
Field Value
DependencyProperty
AdditionalContentActivatedEvent
Identifies the AdditionalContentOpened routed event.
Declaration
public static readonly RoutedEvent AdditionalContentActivatedEvent
Field Value
RoutedEvent
AllowCopyProperty
Identifies the AllowCopy dependency property.
Declaration
public static readonly DependencyProperty AllowCopyProperty
Field Value
DependencyProperty
AllowCutProperty
Identifies the AllowCut dependency property.
Declaration
public static readonly DependencyProperty AllowCutProperty
Field Value
DependencyProperty
AllowDeleteProperty
Identifies the AllowDelete dependency property.
Declaration
public static readonly DependencyProperty AllowDeleteProperty
Field Value
DependencyProperty
AllowPasteProperty
Identifies the AllowPaste dependency property.
Declaration
public static readonly DependencyProperty AllowPasteProperty
Field Value
DependencyProperty
AutoLayoutProperty
Identifies the AutoLayout dependency property.
Declaration
public static readonly DependencyProperty AutoLayoutProperty
Field Value
DependencyProperty
CommandExecutedEvent
Identifies the CommandExecuted routed event.
Declaration
public static readonly RoutedEvent CommandExecutedEvent
Field Value
RoutedEvent
ConnectionBridgeProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty ConnectionBridgeProperty
Field Value
DependencyProperty
ConnectionDeserializedEvent
Identifies the ConnectionDeserialized routed event.
Declaration
public static readonly RoutedEvent ConnectionDeserializedEvent
Field Value
RoutedEvent
ConnectionEditTemplateProperty
Identifies the ConnectionEditTemplate dependency property.
Declaration
public static readonly DependencyProperty ConnectionEditTemplateProperty
Field Value
DependencyProperty
ConnectionEditTemplateSelectorProperty
Identifies the ConnectionEditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionEditTemplateSelectorProperty
Field Value
DependencyProperty
ConnectionManipulationCompletedEvent
Identifies the ConnectionManipulationCompleted routed event.
Declaration
public static readonly RoutedEvent ConnectionManipulationCompletedEvent
Field Value
RoutedEvent
ConnectionManipulationStartedEvent
Identifies the ConnectionManipulationStartedEvent routed event.
Declaration
public static readonly RoutedEvent ConnectionManipulationStartedEvent
Field Value
RoutedEvent
ConnectionRoundedCornersProperty
Identifies the RoundedCorners dependency property.
Declaration
public static readonly DependencyProperty ConnectionRoundedCornersProperty
Field Value
DependencyProperty
ConnectionSerializedEvent
Identifies the ConnectionSerialized routed event.
Declaration
public static readonly RoutedEvent ConnectionSerializedEvent
Field Value
RoutedEvent
ConnectionStyleProperty
Identifies the ConnectionStyle dependency property.
Declaration
public static readonly DependencyProperty ConnectionStyleProperty
Field Value
DependencyProperty
ConnectionStyleSelectorProperty
Identifies the ConnectionStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionStyleSelectorProperty
Field Value
DependencyProperty
ConnectionTemplateProperty
Identifies the ConnectionTemplate dependency property.
Declaration
public static readonly DependencyProperty ConnectionTemplateProperty
Field Value
DependencyProperty
ConnectionTemplateSelectorProperty
Identifies the ConnectionTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ConnectionTemplateSelectorProperty
Field Value
DependencyProperty
ConnectorActivationChangedEvent
Identifies the ConnectorActivationChanged routed event.
Declaration
public static readonly RoutedEvent ConnectorActivationChangedEvent
Field Value
RoutedEvent
ConnectorStyleProperty
Identifies the ConnectorStyle dependency property.
Declaration
public static readonly DependencyProperty ConnectorStyleProperty
Field Value
DependencyProperty
ContainerShapeStyleProperty
Identifies the ContainerShapeStyle dependency property.
Declaration
public static readonly DependencyProperty ContainerShapeStyleProperty
Field Value
DependencyProperty
DeserializedEvent
Identifies the Deserialized routed event.
Declaration
public static readonly RoutedEvent DeserializedEvent
Field Value
RoutedEvent
DiagramLayoutCompletedEvent
Identifies the DiagramLayoutComplete routed event.
Declaration
public static readonly RoutedEvent DiagramLayoutCompletedEvent
Field Value
RoutedEvent
DisplayMemberPathProperty
Identifies the DisplayMemberPath dependency property.
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
DependencyProperty
DragEvent
Identifies the DragEvent routed event.
Declaration
public static readonly RoutedEvent DragEvent
Field Value
RoutedEvent
GraphSourceProperty
Identifies the GraphSource dependency property.
Declaration
public static readonly DependencyProperty GraphSourceProperty
Field Value
DependencyProperty
GroupStyleProperty
Identifies the SelectedGroupBrush dependency property.
Declaration
public static readonly DependencyProperty GroupStyleProperty
Field Value
DependencyProperty
GroupsChangedEvent
Identifies the ItemsChanged routed event.
Declaration
public static readonly RoutedEvent GroupsChangedEvent
Field Value
RoutedEvent
IsAdditionalContentVisibleProperty
Identifies the IsAdditionalContentVisible dependency property.
Declaration
public static readonly DependencyProperty IsAdditionalContentVisibleProperty
Field Value
DependencyProperty
IsBackgroundSurfaceVisibleProperty
Identifies the IsBackgroundSurfaceVisible dependency property.
Declaration
public static readonly DependencyProperty IsBackgroundSurfaceVisibleProperty
Field Value
DependencyProperty
IsConnectorsManipulationEnabledProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty
Field Value
DependencyProperty
IsDraggingEnabledProperty
Identifies the IsDraggingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsDraggingEnabledProperty
Field Value
DependencyProperty
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly DependencyProperty IsEditableProperty
Field Value
DependencyProperty
IsInformationAdornerVisibleProperty
Identifies the IsInformationAdornerVisible dependency property.
Declaration
public static readonly DependencyProperty IsInformationAdornerVisibleProperty
Field Value
DependencyProperty
IsManipulationAdornerVisibleProperty
Identifies the IsManipulationAdornerVisible dependency property.
Declaration
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty
Field Value
DependencyProperty
IsPanEnabledProperty
Identifies the IsPanEnabled dependency property.
Declaration
public static readonly DependencyProperty IsPanEnabledProperty
Field Value
DependencyProperty
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsResizingEnabledProperty
Field Value
DependencyProperty
IsRotationEnabledProperty
Identifies the IsRotationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsRotationEnabledProperty
Field Value
DependencyProperty
IsSnapToGridEnabledProperty
Identifies the IsSnapEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSnapToGridEnabledProperty
Field Value
DependencyProperty
IsSnapToItemsEnabledProperty
Identifies the IsSnapToItemsEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSnapToItemsEnabledProperty
Field Value
DependencyProperty
IsZoomEnabledProperty
Identifies the IsZoomEnabled dependency property.
Declaration
public static readonly DependencyProperty IsZoomEnabledProperty
Field Value
DependencyProperty
ItemsChangedEvent
Identifies the ItemsChanged routed event.
Declaration
public static readonly RoutedEvent ItemsChangedEvent
Field Value
RoutedEvent
ItemsChangingEvent
Identifies the ItemsChanging routed event.
Declaration
public static readonly RoutedEvent ItemsChangingEvent
Field Value
RoutedEvent
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
DependencyProperty
MetadataDeserializedEvent
Identifies the MetadataDeserialized routed event.
Declaration
public static readonly RoutedEvent MetadataDeserializedEvent
Field Value
RoutedEvent
MetadataSerializedEvent
Identifies the MetadataSerialized routed event.
Declaration
public static readonly RoutedEvent MetadataSerializedEvent
Field Value
RoutedEvent
PanEvent
Identifies the PreviewPan routed event.
Declaration
public static readonly RoutedEvent PanEvent
Field Value
RoutedEvent
PositionChangedEvent
Identifies the PositionChanged routed event.
Declaration
public static readonly RoutedEvent PositionChangedEvent
Field Value
RoutedEvent
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
DependencyProperty
PreviewAdditionalContentActivatedEvent
Identifies the PreviewAdditionalContentOpened routed event.
Declaration
public static readonly RoutedEvent PreviewAdditionalContentActivatedEvent
Field Value
RoutedEvent
PreviewDragEvent
Identifies the PreviewDrag routed event.
Declaration
public static readonly RoutedEvent PreviewDragEvent
Field Value
RoutedEvent
PreviewPanEvent
Identifies the PreviewPan routed event.
Declaration
public static readonly RoutedEvent PreviewPanEvent
Field Value
RoutedEvent
PreviewResizeEvent
Identifies the PreviewResize routed event.
Declaration
public static readonly RoutedEvent PreviewResizeEvent
Field Value
RoutedEvent
PreviewRotateEvent
Identifies the PreviewRotate routed event.
Declaration
public static readonly RoutedEvent PreviewRotateEvent
Field Value
RoutedEvent
PreviewSelectionChangedEvent
Identifies the PreviewSelectionChanged routed event.
Declaration
public static readonly RoutedEvent PreviewSelectionChangedEvent
Field Value
RoutedEvent
PreviewZoomEvent
Identifies the PreviewZoom routed event.
Declaration
public static readonly RoutedEvent PreviewZoomEvent
Field Value
RoutedEvent
RectSelectionModeProperty
Identifies the RectSelectionMode dependency property.
Declaration
public static readonly DependencyProperty RectSelectionModeProperty
Field Value
DependencyProperty
ResizeEvent
Identifies the Resize routed event.
Declaration
public static readonly RoutedEvent ResizeEvent
Field Value
RoutedEvent
RotateEvent
Identifies the Rotate routed event.
Declaration
public static readonly RoutedEvent RotateEvent
Field Value
RoutedEvent
RouteConnectionsProperty
Identifies the RouteConnections dependency property.
Declaration
public static readonly DependencyProperty RouteConnectionsProperty
Field Value
DependencyProperty
SelectedEvent
Identifies the Selected routed event.
Declaration
public static readonly RoutedEvent SelectedEvent
Field Value
RoutedEvent
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SelectionChangedEvent
Identifies the SelectionChanged routed event.
Declaration
public static readonly RoutedEvent SelectionChangedEvent
Field Value
RoutedEvent
SelectionModeProperty
Identifies the SelectionMode dependency property.
Declaration
public static readonly DependencyProperty SelectionModeProperty
Field Value
DependencyProperty
SelectionRectangleStyleProperty
Identifies the SelectionRectangleStyle dependency property.
Declaration
public static readonly DependencyProperty SelectionRectangleStyleProperty
Field Value
DependencyProperty
SerializedEvent
Identifies the Serialized routed event.
Declaration
public static readonly RoutedEvent SerializedEvent
Field Value
RoutedEvent
ShapeClickedEvent
Identifies the ShapeClicked routed event.
Declaration
public static readonly RoutedEvent ShapeClickedEvent
Field Value
RoutedEvent
ShapeDeserializedEvent
Identifies the ShapeDeserialized routed event.
Declaration
public static readonly RoutedEvent ShapeDeserializedEvent
Field Value
RoutedEvent
ShapeDoubleClickedEvent
Identifies the ShapeDoubleClicked routed event.
Declaration
public static readonly RoutedEvent ShapeDoubleClickedEvent
Field Value
RoutedEvent
ShapeEditTemplateProperty
Identifies the ShapeEditTemplate dependency property.
Declaration
public static readonly DependencyProperty ShapeEditTemplateProperty
Field Value
DependencyProperty
ShapeEditTemplateSelectorProperty
Identifies the ShapeEditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeEditTemplateSelectorProperty
Field Value
DependencyProperty
ShapeSerializedEvent
Identifies the ShapeSerialized routed event.
Declaration
public static readonly RoutedEvent ShapeSerializedEvent
Field Value
RoutedEvent
ShapeStyleProperty
Identifies the ShapeStyle dependency property.
Declaration
public static readonly DependencyProperty ShapeStyleProperty
Field Value
DependencyProperty
ShapeStyleSelectorProperty
Identifies the ShapeStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeStyleSelectorProperty
Field Value
DependencyProperty
ShapeTemplateProperty
Identifies the ShapeTemplate dependency property.
Declaration
public static readonly DependencyProperty ShapeTemplateProperty
Field Value
DependencyProperty
ShapeTemplateSelectorProperty
Identifies the ShapeTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ShapeTemplateSelectorProperty
Field Value
DependencyProperty
SnapXProperty
Identifies the SnapX dependency property.
Declaration
public static readonly DependencyProperty SnapXProperty
Field Value
DependencyProperty
SnapYProperty
Identifies the SnapY dependency property.
Declaration
public static readonly DependencyProperty SnapYProperty
Field Value
DependencyProperty
SupportTouchGesturesProperty
Identifies the SupportTouchGestures dependency property.
Declaration
public static readonly DependencyProperty SupportTouchGesturesProperty
Field Value
DependencyProperty
UnselectedEvent
Identifies the Unselected routed event.
Declaration
public static readonly RoutedEvent UnselectedEvent
Field Value
RoutedEvent
ViewportProperty
Identifies the Viewport dependency property.
Declaration
public static readonly DependencyProperty ViewportProperty
Field Value
DependencyProperty
ZoomChangedEvent
Identifies the ZoomChanged routed event.
Declaration
public static readonly RoutedEvent ZoomChangedEvent
Field Value
RoutedEvent
ZoomProperty
Identifies the Zoom dependency property.
Declaration
public static readonly DependencyProperty ZoomProperty
Field Value
DependencyProperty
Properties
ActiveTool
Gets or sets the tool which is active when interacting with the diagram elements.
AllowCopy
Gets or sets a value indicating whether copying is allowed.
Declaration
public bool AllowCopy { get; set; }
Property Value
True if copying is allowed; otherwise, false.
Implements
AllowCut
Gets or sets a value indicating whether cutting is allowed.
Declaration
public bool AllowCut { get; set; }
Property Value
True if cutting is allowed; otherwise, false.
Implements
AllowDelete
Gets or sets a value indicating whether deleting is allowed.
Declaration
public bool AllowDelete { get; set; }
Property Value
True if deleting is allowed; otherwise, false.
Implements
AllowPaste
Gets or sets a value indicating whether pasting is allowed.
Declaration
public bool AllowPaste { get; set; }
Property Value
True if pasting is allowed; otherwise, false.
Implements
AutoLayout
Gets or sets the auto layout.
ConnectionBridge
Gets or sets the connection bridge type.
Declaration
public BridgeType ConnectionBridge { get; set; }
Property Value
Implements
ConnectionEditTemplate
Gets or sets the connection edit template.
Declaration
public DataTemplate ConnectionEditTemplate { get; set; }
Property Value
DataTemplate
The connection edit template.
ConnectionEditTemplateSelector
Gets or sets the connection edit template selector.
Declaration
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
public bool ConnectionRoundedCorners { get; set; }
Property Value
Implements
Remarks
This property has only an effect when the ConnectionType is set to Polyline.
ConnectionStyle
Gets or sets the connection style.
Declaration
public Style ConnectionStyle { get; set; }
Property Value
Style
The connection style.
ConnectionStyleSelector
Gets or sets the connection style selector.
Declaration
public StyleSelector ConnectionStyleSelector { get; set; }
Property Value
StyleSelector
The connection style selector.
ConnectionTemplate
Gets or sets the connection template.
Declaration
public DataTemplate ConnectionTemplate { get; set; }
Property Value
DataTemplate
The connection template.
ConnectionTemplateSelector
Gets or sets the connection template selector.
Declaration
public DataTemplateSelector ConnectionTemplateSelector { get; set; }
Property Value
DataTemplateSelector
The connection template selector.
Connections
Gets the connections.
Declaration
public ConnectionCollection Connections { get; }
Property Value
Implements
ConnectorStyle
Gets or sets the connector style.
Declaration
public Style ConnectorStyle { get; set; }
Property Value
Style
The connector style.
ContainerGenerator
Gets the container generator.
Declaration
public IContainerGenerator<RadDiagramItem> ContainerGenerator { get; }
Property Value
ContainerShapeStyle
Gets or sets the container shape style.
Declaration
public Style ContainerShapeStyle { get; set; }
Property Value
Style
The container shape style.
DisplayMemberPath
Gets or sets the display member path.
Declaration
public string DisplayMemberPath { get; set; }
Property Value
The display member path.
GraphSource
Gets or sets the graph source.
Declaration
public IGraphSource GraphSource { get; set; }
Property Value
The graph source.
Implements
GroupStyle
Gets or sets the Style for the groups adorner. It is shown when a group is selected.
Declaration
public Style GroupStyle { get; set; }
Property Value
Style
Groups
Gets the group collection.
Declaration
public IEnumerable<IGroup> Groups { get; }
Property Value
Implements
IgnoreLinkDirection
Gets or sets a value indicating whether the underlying graph structure is a directional graph.
Declaration
public bool IgnoreLinkDirection { get; set; }
Property Value
True if link directions are ignored; otherwise, false.
Implements
IsAdditionalContentVisible
Gets a value indicating whether the additional content visible.
IsBackgroundSurfaceVisible
Gets or sets whether the background grid is visible.
Declaration
public bool IsBackgroundSurfaceVisible { get; set; }
Property Value
Implements
IsConnectorsManipulationEnabled
Gets or sets a value indicating whether manipulation on the connectors is enabled.
Declaration
public bool IsConnectorsManipulationEnabled { get; set; }
Property Value
True if manipulation on connectors is enabled; otherwise, false.
Implements
IsDraggingEnabled
Gets or sets a value indicating whether dragging is enabled.
Declaration
public bool IsDraggingEnabled { get; set; }
Property Value
True if dragging is enabled; otherwise, false.
Implements
IsEditable
Gets or sets a value indicating whether editing is enabled.
Declaration
public bool IsEditable { get; set; }
Property Value
True if editing is enabled; otherwise, false.
Implements
IsInformationAdornerVisible
Gets or sets whether the information adorner is visible.
Declaration
public bool IsInformationAdornerVisible { get; set; }
Property Value
IsManipulationAdornerVisible
Gets or sets a value indicating whether the manipulation adorner is visible.
Declaration
public bool IsManipulationAdornerVisible { get; set; }
Property Value
True if the manipulation adorner is visible; otherwise, false.
Implements
IsMouseCaptured
Gets or sets a value indicating whether the mouse is captured.
Declaration
public bool IsMouseCaptured { get; set; }
Property Value
True if the mouse is captured; otherwise, false.
Implements
IsPanEnabled
Gets or sets a value indicating whether panning is enabled.
Declaration
public bool IsPanEnabled { get; set; }
Property Value
True if panning is enabled; otherwise, false.
Implements
IsResizingEnabled
Gets or sets a value indicating whether resizing is enabled.
Declaration
public bool IsResizingEnabled { get; set; }
Property Value
True if resizing is enabled; otherwise, false.
Implements
IsRotationEnabled
Gets or sets a value indicating whether rotation is enabled.
Declaration
public bool IsRotationEnabled { get; set; }
Property Value
true if this rotation is enabled; otherwise, false.
Implements
IsSnapToGridEnabled
Gets or sets a value indicating whether grid snapping is enabled.
Declaration
public bool IsSnapToGridEnabled { get; set; }
Property Value
True if grid snapping is enabled; otherwise, false.
Implements
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
public bool IsSnapToItemsEnabled { get; set; }
Property Value
Implements
IsZoomEnabled
Gets or sets a value indicating whether zooming is enabled.
Declaration
public bool IsZoomEnabled { get; set; }
Property Value
True if zooming is enabled; otherwise, false.
Implements
Items
Gets or sets the diagramming items.
Declaration
public DiagramItemCollection Items { get; }
Property Value
The items.
Implements
Metadata
Gets the diagram metadata.
Declaration
public DiagramMetadata Metadata { get; }
Property Value
Implements
Position
Gets or sets the position.
Declaration
public Point Position { get; set; }
Property Value
Point
The position.
Implements
RectSelectionMode
Gets or sets the rectangle selection mode.
Declaration
public RectSelectionMode RectSelectionMode { get; set; }
Property Value
Implements
RouteConnections
Declaration
public bool RouteConnections { get; set; }
Property Value
Implements
Remarks
Setting this property has no effect on other connection types.
RoutingService
Declaration
public IRoutingService RoutingService { get; }
Property Value
SelectedIndex
Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.
SelectedItem
Gets or sets the first item in the current selection or returns null if the selection is empty. This is a dependency property.
SelectedItems
Gets the selected items.
Declaration
public IEnumerable<object> SelectedItems { get; }
Property Value
SelectionBounds
Gets the starting selection bounds.
Declaration
public Rect SelectionBounds { get; }
Property Value
Rect
SelectionMode
Gets or sets the selection mode.
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
Implements
SelectionRectangleStyle
Gets or sets the style of the selection rectangle.
Declaration
public Style SelectionRectangleStyle { get; set; }
Property Value
Style
ServiceLocator
Gets the service locator.
Declaration
public IServiceLocator ServiceLocator { get; }
Property Value
Implements
ShapeEditTemplate
Gets or sets the shape edit template.
Declaration
public DataTemplate ShapeEditTemplate { get; set; }
Property Value
DataTemplate
The shape edit template.
ShapeEditTemplateSelector
Gets or sets the shape edit template selector.
Declaration
public DataTemplateSelector ShapeEditTemplateSelector { get; set; }
Property Value
DataTemplateSelector
The shape edit template selector.
ShapeStyle
Gets or sets the shape style.
Declaration
public Style ShapeStyle { get; set; }
Property Value
Style
The shape style.
ShapeStyleSelector
Gets or sets the shape style selector.
Declaration
public StyleSelector ShapeStyleSelector { get; set; }
Property Value
StyleSelector
The shape style selector.
ShapeTemplate
Gets or sets the shape template.
Declaration
public DataTemplate ShapeTemplate { get; set; }
Property Value
DataTemplate
The shape template.
ShapeTemplateSelector
Gets or sets the shape template selector.
Declaration
public DataTemplateSelector ShapeTemplateSelector { get; set; }
Property Value
DataTemplateSelector
The shape template selector.
Shapes
Gets the shapes.
Declaration
public ShapeCollection Shapes { get; }
Property Value
Implements
SnapX
Gets or sets the horizontal snapping distance.
Declaration
public int SnapX { get; set; }
Property Value
The horizontal snapping distance.
Implements
SnapY
Gets or sets the vertical snapping distance.
Declaration
public int SnapY { get; set; }
Property Value
The vertical snapping distance.
Implements
SupportTouchGestures
Gets or sets a value indicating whether the touch gestures are enabled by default.
UndoRedoService
Gets the undo redo service.
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
Viewport
Gets the bounds of the viewport.
Declaration
public Rect Viewport { get; }
Property Value
Rect
Implements
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.
Methods
AddConnection(IConnection, bool)
Adds a new connection to the diagram.
Declaration
public IConnection AddConnection(IConnection connection, bool isUndoable = false)
Parameters
connection
The connection to be added.
isUndoable
If set to true this action will be recorded in the undo stack.
Returns
Implements
AddConnection(IShape, IShape, bool)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, bool isUndoable = false)
Parameters
source
The source or start shape of the connection.
target
The target or end shape of the connection.
isUndoable
If set to true this action will be recorded in the undo stack.
Returns
Implements
AddConnection(IShape, IShape, string, bool)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, string connectorsPosition, bool isUndoable = false)
Parameters
source
The source or start shape of the connection.
target
The target or end shape of the connection.
connectorsPosition
The connectors position.
isUndoable
If set to true this action will be recorded in the undo stack.
Returns
AddConnection(IShape, IShape, string, string, bool)
Adds a new connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddConnection(IShape source, IShape target, string sourceConnector, string targetConnector, bool isUndoable = false)
Parameters
source
The source.
target
The target.
sourceConnector
The source connector position.
targetConnector
The target connector position.
isUndoable
If set to true is undoable.
Returns
AddConnection(Point, Point, bool)
Adds a floating connection.
Declaration
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
True, if this action is undoable.
Returns
Returns the added connection.
Implements
AddGlidingConnection(IShape, IShape, bool)
Adds a new gliding connection to the diagram connecting the given source and target shapes.
Declaration
public IConnection AddGlidingConnection(IShape source, IShape target, bool isUndoable = false)
Parameters
source
The source or start shape of the connection.
target
The target or end shape of the connection.
isUndoable
If set to true this action will be recorded in the undo stack.
Returns
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
public void AddImageShape(Stream source, Point position)
Parameters
source
position
Point
AddShape(IShape, Point?, bool)
Adds the given shape to the diagram.
Declaration
public IShape AddShape(IShape shape, Point? position = null, bool isUndoable = false)
Parameters
shape
The shape to add.
position
Point?
The position at which the shape will be added on the canvas.
isUndoable
If set to true the action is undoable.
Returns
Implements
AddShape(object, ArrowShapeType, Point?, bool)
Adds a new shape to the diagram.
Declaration
public IShape AddShape(object content, ArrowShapeType type, Point? position = null, bool isUndoable = false)
Parameters
content
The content of the shape.
type
The common shape type.
position
Point?
The position.
isUndoable
If set to true the addition will be recorded as undoable.
Returns
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
public IShape AddShape(object content, CommonShapeType type, Point? position = null, bool isUndoable = false)
Parameters
content
The content of the shape.
type
The common shape type.
position
Point?
The position.
isUndoable
If set to true the addition will be recorded as undoable.
Returns
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
public IShape AddShape(object content, FlowChartShapeType type, Point? position = null, bool isUndoable = false)
Parameters
content
The content of the shape.
type
The common shape type.
position
Point?
The position.
isUndoable
If set to true the addition will be recorded as undoable.
Returns
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
public IShape AddShape(object content, Geometry geometry = null, Point? position = null, bool isUndoable = false)
Parameters
content
The content of the shape.
geometry
Geometry
The geometry.
position
Point?
The position.
isUndoable
If set to true the action is undoable.
Returns
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
public void Align(Alignment alignment, IEnumerable<IShape> shapes)
Parameters
alignment
shapes
AutoFit()
Zoom and pans the diagram in such a way that all items will fit into the currently visible area of the canvas.
Declaration
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
public void AutoFit(Thickness margin, bool useAnimation = true)
Parameters
margin
Thickness
The margin to be used as whitespace border around the diagram items.
useAnimation
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
public void AutoFitAsync(Thickness margin, bool useAnimation = true)
Parameters
margin
Thickness
The margin to be used as whitespace border around the diagram items.
useAnimation
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
public DiagramLayoutState BeginBatchTransformation()
Returns
Implements
BringForward(IEnumerable<IDiagramItem>, bool)
Brings the items forward.
Declaration
public void BringForward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
items
isUndoable
BringIntoView(Point, double, bool)
Brings the provided point into the top left corner of the view port with the requested zoom.
Declaration
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
The zoom level. It will be coerced according to Zoom property restriction.
useAnimation
Determines whether an animation will be used.
Returns
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
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
Determines whether an animation will be used.
Returns
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
public bool BringIntoView(object item, double zoomLevel = 1, bool useAnimation = true)
Parameters
item
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
The zoom level. It will be coerced according to Zoom property restriction.
useAnimation
Determines whether an animation will be used.
Returns
Whether the operation has bee executed successfully or not.
BringToFront(IEnumerable<IDiagramItem>, bool)
Brings the items to front.
Declaration
public void BringToFront(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
items
isUndoable
CleanContainerForItemOverride(FrameworkElement, object)
Cleans the container for item override.
Declaration
protected virtual void CleanContainerForItemOverride(FrameworkElement container, object item)
Parameters
container
FrameworkElement
The container.
item
The item.
Clear()
Clears the diagram and resets the document.
Declaration
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
public void CommitBatchTransformation(DiagramLayoutState initialState, DiagramLayoutState finalState, bool animate = false, bool execute = true, LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
initialState
The initial state.
finalState
The final state.
animate
If set to true the layout will be animated.
execute
Whether the undo-redo unit is only added or also executed.
type
The layout type that has been applied.
settings
The layout specific settings used for the layout.
Implements
Remarks
The animation tremendously decreases the performance.
Copy()
Copies the currently selected items of the diagram.
Declaration
public void Copy()
Cut()
Cuts the currently selected items of the diagram.
Declaration
public void Cut()
Delete()
Deletes the currently selected items of the diagram.
Declaration
public virtual void Delete()
DeselectAll()
Deselects all shapes in the diagram.
Declaration
public void DeselectAll()
Deserialize(SerializationInfo)
Deserializes the specified info.
Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
info
The info.
Implements
Export(string)
Exports the Diagram into png or bmp.
Declaration
public void Export(string exportFormat)
Parameters
exportFormat
ExportToImage(Stream, BitmapEncoder, Rect?, Size, Brush, Thickness, double)
Exports an image of the given element to stream using the specified bitmap encoder.
Declaration
[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
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
The quality of the image.
GetConnectionContainerForItemOverride(object)
Gets the connection container for item override.
Declaration
protected virtual IConnection GetConnectionContainerForItemOverride(object item)
Parameters
item
The item.
Returns
GetShapeContainerForItemOverride(IContainerItem)
Gets the 'container shape' container for item override.
Declaration
protected virtual IContainerShape GetShapeContainerForItemOverride(IContainerItem item)
Parameters
item
The item.
Returns
GetShapeContainerForItemOverride(object)
Gets the shape container for item override.
GetTextShapeContainerForItemOverride(object)
Gets the text shape container for item override.
Group(string, bool, params IGroupable[])
Groups the specified items.
Declaration
public IGroup Group(string groupName = null, bool isUndoable = false, params IGroupable[] items)
Parameters
groupName
Name of the new group.
isUndoable
If set to true the action will be recorded as undoable.
items
The groups items to ungroup.
Returns
Implements
Group(string, params IGroupable[])
Groups the specified items.
Declaration
public IGroup Group(string groupName = null, params IGroupable[] items)
Parameters
groupName
Name of the new group.
items
The groups items to ungroup.
Returns
Implements
IsInViewport(IDiagramItem)
Checks if the diagram item is in the viewport.
Declaration
public bool IsInViewport(IDiagramItem item)
Parameters
item
Returns
IsItemItsOwnConnectionContainerOverride(object)
Determines whether [is item its own connection container override] [the specified item].
IsItemItsOwnShapeContainerOverride(object)
Determines whether the item is a container on its own.
Layout(LayoutType, object)
Organizes the diagram using the specified layout.
Declaration
public void Layout(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
type
The layout type to apply.
settings
The settings specific to the layout type.
LayoutAsync(LayoutType, object)
Organizes the diagram using the specified layout asynchronously.
Declaration
public void LayoutAsync(LayoutType type = LayoutType.Sugiyama, object settings = null)
Parameters
type
The layout type to apply.
settings
The settings specific to the layout type.
Load(string)
Loads the specified serialization string.
Declaration
public void Load(string serializationValue)
Parameters
serializationValue
The serialization value.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnCanExecuteDeleteCommandOverride(object, CanExecuteRoutedEventArgs)
Called on can execute delete command.
Declaration
protected virtual void OnCanExecuteDeleteCommandOverride(object sender, CanExecuteRoutedEventArgs e)
Parameters
sender
e
CanExecuteRoutedEventArgs
OnCreateAutomationPeer()
Creates a peer associated with this object.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
An instance of the .
OnDeleteCommandExecutedOverride(object, ExecutedRoutedEventArgs)
Called when delete command is executed.
Declaration
protected virtual void OnDeleteCommandExecutedOverride(object sender, ExecutedRoutedEventArgs e)
Parameters
sender
e
ExecutedRoutedEventArgs
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsConnectorsManipulationEnabledChanged(bool, bool)
Called on is connectors manipulation enabled property changed.
OnKeyDownHandled(object, KeyEventArgs)
Declaration
protected virtual void OnKeyDownHandled(object sender, KeyEventArgs e)
Parameters
sender
e
KeyEventArgs
OnKeyUpHandled(object, KeyEventArgs)
Declaration
protected virtual void OnKeyUpHandled(object sender, KeyEventArgs e)
Parameters
sender
e
KeyEventArgs
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called before the event occurs.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
The data for the event.
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called before the event occurs.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
The data for the event.
OnMouseMove(MouseEventArgs)
Called before the event occurs.
Declaration
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
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
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
oldPosition
Point
newPosition
Point
OnRouteConnectionsChanged(bool, bool)
Called on route connections property change.
OnZoomChanged(double, double)
Called when the Zoomproperty changes.
Paste()
Pastes the content of the clipboard onto the diagram.
Declaration
public virtual void Paste()
PrepareConnectionContainerForItemOverride(FrameworkElement, object)
Prepares the container for item override.
Declaration
protected virtual void PrepareConnectionContainerForItemOverride(FrameworkElement container, object item)
Parameters
container
FrameworkElement
The container.
item
The item.
PrepareShapeContainerForItemOverride(FrameworkElement, object)
Prepares the container for item override.
Declaration
protected virtual void PrepareShapeContainerForItemOverride(FrameworkElement container, object item)
Parameters
container
FrameworkElement
The container.
item
The item.
Print(RadDiagramPrintSettings)
Print the diagram.
Declaration
public bool Print(RadDiagramPrintSettings printSettings = null)
Parameters
printSettings
The print settings.
Returns
True when the printing is successful, False otherwise.
PublishDiagramEvent(DiagramEvent, object)
Raises generic event.
Declaration
[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
args
Returns
RemoveConnection(IConnection, bool)
Removes the connection.
Declaration
public void RemoveConnection(IConnection connection, bool isUndoable = false)
Parameters
connection
The connection.
isUndoable
If set to true the action is undoable.
Implements
RemoveShape(IShape, bool)
Removes the shape.
ResetViewport(bool)
Brings the (0, 0) point into the top left corner of the view port with zoom equal to 1.
Declaration
public void ResetViewport(bool useAnimation = true)
Parameters
useAnimation
Determines whether an animation will be used.
Save()
Saves the diagram.
Scroll(double, double)
Scrolls with specified horizontal and vertical offset.
SendBackward(IEnumerable<IDiagramItem>, bool)
Sends the items backward.
Declaration
public void SendBackward(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
items
isUndoable
SendToBack(IEnumerable<IDiagramItem>, bool)
Sends the items to back.
Declaration
public void SendToBack(IEnumerable<IDiagramItem> items, bool isUndoable = true)
Parameters
items
isUndoable
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
Implements
Snap(IEnumerable<IShape>)
Snaps the specified shapes.
Declaration
public void Snap(IEnumerable<IShape> shapes)
Parameters
shapes
Ungroup(bool, params IGroup[])
Ungroups the specified items.
Ungroup(params IGroup[])
Ungroups the specified items.
Declaration
public void Ungroup(params IGroup[] groups)
Parameters
groups
IGroup[]
The groups items to ungroup.
Implements
UpdateRectSelection(Rect)
Updates the rectangle selection.
Declaration
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
public void ZoomIn(double? factor = null, Point? targetPoint = null, bool useAnimation = true)
Parameters
factor
The value by which to change Zoom property.
targetPoint
Point?
The center of the zoom. The point should be provided in viewport coordinates.
useAnimation
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
public void ZoomOut(double? factor = null, Point? targetPoint = null, bool useAnimation = true)
Parameters
factor
The value by which to change Zoom property.
targetPoint
Point?
The center of the zoom. The point should be provided in viewport coordinates.
useAnimation
Determines whether animation should be used.
Events
AdditionalContentActivated
Occurs when AdditionContent is activated.
Declaration
public event EventHandler<AdditionalContentActivatedEventArgs> AdditionalContentActivated
Event Value
CommandExecuted
Occurs when a command is executed.
Declaration
public event EventHandler<CommandRoutedEventArgs> CommandExecuted
Event Value
ConnectionDeserialized
Occurs when a connection has been deserialized.
Declaration
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionDeserialized
Event Value
Remarks
This event allows you to recover additional, application specific data from the serialization.
ConnectionManipulationCompleted
Occurs when the connection manipulation has completed.
Declaration
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationCompleted
Event Value
ConnectionManipulationStarted
Occurs before the connection manipulation has started.
Declaration
public event EventHandler<ManipulationRoutedEventArgs> ConnectionManipulationStarted
Event Value
ConnectionSerialized
Occurs when a connection has been serialized.
Declaration
public event EventHandler<ConnectionSerializationRoutedEventArgs> ConnectionSerialized
Event Value
Remarks
This event allows you to add additional, application specific data to the serialization.
ConnectorActivationChanged
Occurs after a connector activation or deactivation.
Declaration
public event EventHandler<ConnectorActivationChangedEventArgs> ConnectorActivationChanged
Event Value
Deserialized
Occurs when the diagram has been deserialized.
Declaration
public event RadRoutedEventHandler Deserialized
Event Value
DiagramLayoutComplete
Occurs when the diagram layout has completed.
Declaration
public event RoutedEventHandler DiagramLayoutComplete
Event Value
RoutedEventHandler
Drag
Occurs when an item is dragged.
Declaration
public event EventHandler<DragRoutedEventArgs> Drag
Event Value
GraphSourceChanged
Occurs when the graph source has changed.
GraphSourceChanging
Occurs when the graph source begins changing.
Declaration
public event EventHandler GraphSourceChanging
Event Value
GroupsChanged
Occurs when count of the groups change.
Declaration
public event EventHandler<DiagramItemsChangedEventArgs> GroupsChanged
Event Value
ItemsChanged
Occurs when count of the items change.
Declaration
public event EventHandler<DiagramItemsChangedEventArgs> ItemsChanged
Event Value
ItemsChanging
Occurs while the diagram items are changing.
Declaration
public event EventHandler<DiagramItemsChangingEventArgs> ItemsChanging
Event Value
MetadataDeserialized
Occurs when the diagram's metadata has been deserialized.
Declaration
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataDeserialized
Event Value
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
public event EventHandler<DiagramSerializationRoutedEventArgs> MetadataSerialized
Event Value
Remarks
This event allows you to add additional, application specific data to the serialization.
Pan
Occurs after the diagram is panned.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> Pan
Event Value
PositionChanged
Occurs when the position has changed.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> PositionChanged
Event Value
PreviewAdditionalContentActivated
Occurs when AdditionContent is about to be activated.
Declaration
public event EventHandler<AdditionalContentActivatedEventArgs> PreviewAdditionalContentActivated
Event Value
PreviewDrag
Occurs before an item is dragged.
Declaration
public event EventHandler<DragRoutedEventArgs> PreviewDrag
Event Value
PreviewPan
Occurs before the diagram is panned.
Declaration
public event EventHandler<PositionChangedRoutedEventArgs> PreviewPan
Event Value
PreviewResize
Occurs before an item is resized.
Declaration
public event EventHandler<ResizeRoutedEventArgs> PreviewResize
Event Value
PreviewRotate
Occurs before an item is rotated.
Declaration
public event EventHandler<RadRoutedEventArgs> PreviewRotate
Event Value
PreviewSelectionChanged
Occurs when the selection of the diagram starts changing.
Declaration
public event SelectionChangedEventHandler PreviewSelectionChanged
Event Value
SelectionChangedEventHandler
PreviewZoom
Occurs before the zoom has been changed.
Declaration
public event EventHandler<DiagramZoomEventArgs> PreviewZoom
Event Value
Resize
Occurs when an item is resized.
Declaration
public event EventHandler<ResizeRoutedEventArgs> Resize
Event Value
Rotate
Occurs when an item is rotated.
Declaration
public event EventHandler<RotateRoutedEventArgs> Rotate
Event Value
SelectionBoundsChanged
Occurs when the selection bounds of the diagram changes.
Declaration
public event EventHandler SelectionBoundsChanged
Event Value
SelectionChanged
Occurs when the selection of the diagram changes.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Value
SelectionChangedEventHandler
Serialized
Occurs after the diagram has been serialized.
Declaration
public event RadRoutedEventHandler Serialized
Event Value
ShapeClicked
Occurs when shape is clicked.
Declaration
public event EventHandler<ShapeRoutedEventArgs> ShapeClicked
Event Value
ShapeDeserialized
Occurs when a shape has been deserialized.
Declaration
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeDeserialized
Event Value
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
public event EventHandler<ShapeRoutedEventArgs> ShapeDoubleClicked
Event Value
ShapeSerialized
Occurs when a shape has been serialized.
Declaration
public event EventHandler<ShapeSerializationRoutedEventArgs> ShapeSerialized
Event Value
Remarks
This event allows you to add additional, application specific data to the serialization.
ViewportChanged
Occurs when the viewport has changed.
Declaration
public event EventHandler<PropertyEventArgs<Rect>> ViewportChanged
Event Value
EventHandler<PropertyEventArgs<Rect>>
VisualChildrenChanged
Occurs when [children changed].
Declaration
public event EventHandler VisualChildrenChanged
Event Value
ZoomChanged
Occurs when the zoom has been changed.
Declaration
public event EventHandler<RadRoutedPropertyChangedEventArgs<double>> ZoomChanged
Event Value
EventHandler<RadRoutedPropertyChangedEventArgs<double>>