Diagram
A Diagram is a Control that includes a DiagramPanel that holds some Layers that display Parts such as Nodes and Links.
Hereda de: Control
Constructores
Diagram()
Create an empty Diagram with the standard values for the Model, PartManager, LayoutManager, Layout, CommandHandler, MouseDownTools, MouseMoveTools, MouseUpTools, and the various defined tool properties including CurrentTool.
Propiedades
AllowClipboard : bool
Gets or sets whether the user may copy to or paste from the clipboard, either the system clipboard or the internal one.
AllowDelete : bool
Gets or sets whether the user may delete parts from the diagram.
AllowDragOut : bool
Gets or sets whether the user may start a drag-and-drop in this diagram, possibly dropping in a different control.
AllowGroup : bool
Gets or sets whether the user may group parts together.
AllowInsert : bool
Gets or sets whether the user may insert parts into the diagram.
AllowPrint : bool
Gets or sets whether the user may print parts.
AllowRelink : bool
Gets or sets whether the user may reconnect existing links.
AllowReshape : bool
Gets or sets whether the user may reshape parts.
AllowResize : bool
Gets or sets whether the user may resize parts.
AllowRotate : bool
Gets or sets whether the user may rotate parts.
AllowScroll : bool
Gets or sets whether the user may scroll the diagram, thereby changing the value of Position.
AllowSelect : bool
Gets or sets whether the user may select parts.
AllowUngroup : bool
Gets or sets whether the user may ungroup existing group nodes.
AllowZoom : bool
Gets or sets whether the user may zoom the diagram, thereby changing the value of Scale.
CenteredNodeData : object
Gets or sets the data object for which the corresponding Node will be centered in the viewport.
ClickCreatingTool : ClickCreatingTool
Gets or sets the standard mouse-up tool for inserting objects with a mouse click.
ClickSelectingTool : ClickSelectingTool
Gets or sets the standard mouse-up tool for selecting objects with a mouse click.
CommandHandler : CommandHandler
Gets or sets the CommandHandler that implements all of the standard commands.
CurrentTool : IDiagramTool
Gets or sets the current IDiagramTool that handles the diagram's input events.
DefaultTool : IDiagramTool
Gets or sets the default tool, which is used as the value of CurrentTool both initially as well as whenever a tool stops.
DraggingTool : DraggingTool
Gets or sets the standard mouse-move tool for dragging (moving or copying) the selection.
DragSelectingTool : DragSelectingTool
Gets or sets the standard mouse-move tool for selecting many objects with a rubber-band rectangle.
DragZoomingTool : DragZoomingTool
Gets or sets the non-standard mouse-move tool for manual zooming.
Filter : PartManagerFilter
Gets or sets whether IDiagramModel) causes node data not to get Nodes created for them if they are the tree children of collapsed tree nodes or if they are the members of collapsed group nodes.
FirstMouseEventArgs : MouseEventArgs
Gets or sets the MouseEventArgs describing the first mouse-down event.
FirstMousePointInModel : Point
Gets or sets the point in model coordinates at which a mouse down event occurred.
FirstMouseTimestamp : int
Gets or sets the time stamp, in milliseconds, describing the first mouse-down event.
GridPattern : GridPattern
Gets or sets the UIElement used to render the GridPattern for the whole diagram.
GridPatternTemplate : DataTemplate
Gets or sets the DataTemplate used to render the GridPattern for the whole diagram.
GridSnapCellSize : Size
Gets or sets the size of the grid cell used when snapping during a drag if the value of GridSnapEnabled is true.
GridSnapCellSpot : Spot
Gets or sets the Spot that specifies what point in the grid cell dragged parts snap to, if the value of GridSnapEnabled is true.
GridSnapEnabled : bool
Gets or sets whether the DraggingTool snaps the location of dragged nodes.
GridSnapOrigin : Point
Gets or sets the snapping grid's coordinates, in model coordinates, if the value of GridSnapEnabled is true.
GridVisible : bool
Gets or sets whether a background grid pattern is visible for the whole diagram.
GroupTemplate : DataTemplate
Gets or sets the DataTemplate used to define the default appearance of Groups.
GroupTemplateDictionary : DataTemplateDictionary
Gets or sets a DataTemplateDictionary that determines the appearance of all Groups.
HasDefaultModel : bool
Gets or sets whether this Diagram has a default value for Model, an empty UniversalGraphLinksModel.
InitialCenteredNodeData : object
Gets or sets the data object for which the corresponding Node will be centered in the viewport after an initial layout has completed.
InitialDiagramBoundsSpot : Spot
Gets or sets the Spot point in the diagram bounds that should be positioned at the point specified by InitialPanelSpot.
InitialPanelSpot : Spot
Gets or sets the Spot point in the panel where the point specified by InitialDiagramBoundsSpot should be positioned.
InitialParts : IList
Gets the list of Parts that are automatically included in the diagram without coming from the Model.
InitialPosition : Point
Gets or sets the initial value for this diagram's Panel's Position property, in model coordinates.
InitialScale : double
Gets or sets the initial value for this diagram's Panel's Scale property.
InitialStretch : StretchPolicy
Gets or sets the initial value for this diagram's Panel's Stretch property.
IsAnimating : bool
This read-only property is true when a layout or scrolling animation is in progress.
IsInTransaction : bool
This property is true when a transaction has been started on the Model's UndoManager.
IsReadOnly : bool
Gets or sets whether the user may not modify the diagram. This is a dependency property.
LastMouseEventArgs : MouseEventArgs
Gets or sets the MouseEventArgs describing the latest mouse event.
LastMousePointInModel : Point
Gets or sets the latest point in model coordinates at which any mouse event occurred.
LastMouseTimestamp : int
Gets or sets the time stamp, in milliseconds, describing the last mouse event.
Layout : IDiagramLayout
Gets or sets the IDiagramLayout responsible for positioning all of the top-level nodes in the diagram.
LayoutManager : LayoutManager
Gets or sets the LayoutManager that is responsible for positioning all of the nodes in the diagram.
LinkingTool : LinkingTool
Gets or sets the standard mouse-move tool for drawing a new link.
LinkReshapingTool : LinkReshapingTool
Gets or sets the standard mouse-down tool for reshaping a link.
Links : IEnumerable<Link>
A read-only collection of the Links in this diagram.
LinksSource : IEnumerable
Gets and sets the diagram's Model's LinksSource, if the model is an ILinksModel.
LinkTemplate : DataTemplate
Gets or sets a DataTemplate that determines the default appearance of Links.
LinkTemplateDictionary : DataTemplateDictionary
Gets or sets a DataTemplateDictionary that determines the appearance of all Links.
MaximumSelectionCount : int
Gets or sets the maximum number of selected parts.
Model : IDiagramModel
Gets or sets the IDiagramModel that organizes the data to which this diagram is bound.
MouseDownTools : IList<IDiagramTool>
Gets the list of IDiagramTools searched by the ToolManager to look for tools to run upon a mouse down event.
MouseMoveTools : IList<IDiagramTool>
Gets the list of IDiagramTools searched by the ToolManager to look for tools to run upon a mouse move event.
MouseUpTools : IList<IDiagramTool>
Gets the list of IDiagramTools searched by the ToolManager to look for tools to run upon a mouse up event.
Nodes : IEnumerable<Node>
A read-only collection of the Nodes in this diagram, including Groups.
NodesSource : IEnumerable
Gets and sets the diagram's Model's NodesSource.
NodeTemplate : DataTemplate
Gets or sets the DataTemplate used to define the default appearance of regular Nodes, ones that are neither groups nor link labels.
NodeTemplateDictionary : DataTemplateDictionary
Gets or sets a DataTemplateDictionary that determines the appearance of Nodes that are not Groups.
Panel : DiagramPanel
Gets the DiagramPanel that implements the basic functionality of this diagram.
PanningTool : PanningTool
Gets or sets the standard mouse-move tool for manual panning.
PartManager : PartManager
Gets or sets the PartManager responsible for creating and updating Parts for all of the data managed by the Model.
PartsModel : PartsModel
Gets or sets the special model used to hold Parts that are not bound to data.
PrintManager : PrintManager
Gets or sets the PrintManager that is responsible for printing the diagram.
RelinkingTool : RelinkingTool
Gets or sets the standard mouse-down tool for reconnecting an existing link.
ResizingTool : ResizingTool
Gets or sets the standard mouse-down tool for resizing a part.
RotatingTool : RotatingTool
Gets or sets the standard mouse-down tool for rotating a part.
SelectedGroup : Group
Gets or sets the primary selected Group.
SelectedLink : Link
Gets or sets the primary selected Link.
SelectedNode : Node
Gets or sets the primary selected Node.
SelectedPart : Part
Gets or sets the primary selected Part.
SelectedParts : ObservableCollection<Part>
This is an ObservableCollection of all selected Parts.
Stretch : StretchPolicy
Gets or sets how the parts are positioned in the panel.
TextEditingTool : TextEditingTool
Gets or sets the standard tool for in-place text editing.
TreePath : TreePath
Gets or sets the manner in which tree-structured diagrams are assumed to be defined.
UnloadingClearsPartManager : bool
Gets or sets whether when this Diagram is Unloaded, it should clear out all of the PartManager's Nodes and Links.
Métodos
ClearSelection()
Remove all Parts from the collection of SelectedParts.
CommitTransaction(string) : bool
Complete an undoable transaction (a collection of model changes) by calling String).
- tname
- a description of the changes that just happened
FindDefault``1(string)
This static method finds a default diagram resource of type .
- name
Devuelve: null if no resource can be found with the name or if it does exist but is not of type
FindMouseTool``1(bool)
Find a mouse tool of a given type.
- subclass
- If true, a matching tool may be a subclass of ; otherwise the tool must be of exactly the same type.
FindResource``1(FrameworkElement, string)
This static method looks for a resource of type .
- start
- a FrameworkElement
- name
- the name of the desired resource
Devuelve: the first object of type found in searching the ResourceDictionary of the element or in its parent elements, or null if no resource by that name is found, or if it is found but is not of the desired type.
LayoutDiagram()
Request a re-layout of all of the nodes and links in this diagram.
OnApplyTemplate()
Perform initialization.
RaiseTemplatesChanged(string)
Raise the TemplatesChanged event.
- propertyname
- the name of the modified dictionary property
ReplaceMouseTool``1(IDiagramTool, bool)
Replace a mouse tool of a given type with a new tool.
- newtool
- If the new value is null, any tool that the search finds will just be removed from the list in which it was found.
- subclass
- If true, a matching tool may be a subclass of ; otherwise the tool must be of exactly the same type.
Devuelve: the old tool that was replaced by the new one
RollbackTransaction() : bool
Abort the current transaction and rollback (undo) any of the changes by calling RollbackTransaction.
Select(Part)
Make the given the only selected Part.
- part
- A Part that belongs to this diagram. If this value is null, this does nothing.
Select(IEnumerable<Part>)
Make all of the Parts in the given collection of the only selected parts.
- parts
- An IEnumerable<Part> of Parts that belong to this diagram. If this value is null, this does nothing.
StartTransaction(string) : bool
Start an undoable transaction (a collection of model changes) by calling String).
- tname
- a description of the changes that are about to happen
Eventos
ClipboardPasted : EventHandler<DiagramEventArgs>
This event is raised by Paste.
ExternalObjectsDropped : EventHandler<DiagramEventArgs>
This event is raised by DraggingTool.
InitialLayoutCompleted : EventHandler<DiagramEventArgs>
This event is raised after the first layout has been performed and the diagram bounds have been updated.
LayoutCompleted : EventHandler<DiagramEventArgs>
This event is raised after any layout has been performed and the diagram bounds have been updated.
LinkDrawn : EventHandler<DiagramEventArgs>
This event is raised by LinkingTool.
LinkRelinked : EventHandler<DiagramEventArgs>
This event is raised by RelinkingTool.
LinkReshaped : EventHandler<DiagramEventArgs>
This event is raised by LinkReshapingTool.
ModelReplaced : PropertyChangedEventHandler
This event is raised when the Model property changes value.
NodeCreated : EventHandler<DiagramEventArgs>
This event is raised by ClickCreatingTool.
NodeResized : EventHandler<DiagramEventArgs>
This event is raised by ResizingTool.
NodeRotated : EventHandler<DiagramEventArgs>
This event is raised by RotatingTool.
SelectionChanged : SelectionChangedEventHandler
This event is raised by Diagram.
SelectionCopied : EventHandler<DiagramEventArgs>
This event is raised by DraggingTool.
SelectionDeleted : EventHandler<DiagramEventArgs>
This event is raised by Delete, after the deletion occurs.
SelectionDeleting : EventHandler<DiagramEventArgs>
This event is raised by Delete, before the deletion occurs.
SelectionGrouped : EventHandler<DiagramEventArgs>
This event is raised by Group.
SelectionMoved : EventHandler<DiagramEventArgs>
This event is raised by DraggingTool.
SelectionUngrouped : EventHandler<DiagramEventArgs>
This event is raised by Ungroup.
TemplateApplied : EventHandler<DiagramEventArgs>
This event is raised by OnApplyTemplate, after the diagram's Panel has been created, to allow you to establish event handlers or bindings on the DiagramPanel.
TemplatesChanged : PropertyChangedEventHandler
This event is raised when one of the DataTemplate properties of the diagram is changed.
TextEdited : EventHandler<DiagramEventArgs>
This event is raised by TextEditingTool.
Campos
AllowClipboardProperty : DependencyProperty
Identifies the AllowClipboard dependency property.
AllowCopyProperty : DependencyProperty
Identifies the AllowCopy dependency property.
AllowDeleteProperty : DependencyProperty
Identifies the AllowDelete dependency property.
AllowDragOutProperty : DependencyProperty
Identifies the AllowDragOut dependency property.
AllowDropProperty : DependencyProperty
Identifies the AllowDrop dependency property.
AllowEditProperty : DependencyProperty
Identifies the AllowEdit dependency property.
AllowGroupProperty : DependencyProperty
Identifies the AllowGroup dependency property.
AllowInsertProperty : DependencyProperty
Identifies the AllowInsert dependency property.
AllowLinkProperty : DependencyProperty
Identifies the AllowLink dependency property.
AllowMoveProperty : DependencyProperty
Identifies the AllowMove dependency property.
AllowPrintProperty : DependencyProperty
Identifies the AllowPrint dependency property.
AllowRelinkProperty : DependencyProperty
Identifies the AllowRelink dependency property.
AllowReshapeProperty : DependencyProperty
Identifies the AllowReshape dependency property.
AllowResizeProperty : DependencyProperty
Identifies the AllowResize dependency property.
AllowRotateProperty : DependencyProperty
Identifies the AllowRotate dependency property.
AllowScrollProperty : DependencyProperty
Identifies the AllowScroll dependency property.
AllowSelectProperty : DependencyProperty
Identifies the AllowSelect dependency property.
AllowUndoProperty : DependencyProperty
Identifies the AllowUndo dependency property.
AllowUngroupProperty : DependencyProperty
Identifies the AllowUngroup dependency property.
AllowZoomProperty : DependencyProperty
Identifies the AllowZoom dependency property.
CenteredNodeDataProperty : DependencyProperty
Identifies the CenteredNodeData dependency property.
ClickCreatingToolProperty : DependencyProperty
Identifies the ClickCreatingTool dependency property.
ClickSelectingToolProperty : DependencyProperty
Identifies the ClickSelectingTool dependency property.
ClipboardPastedEvent : RoutedEvent
Identifies the ClipboardPasted routed event.
CommandHandlerProperty : DependencyProperty
Identifies the CommandHandler dependency property.
CurrentToolProperty : DependencyProperty
Identifies the CurrentTool dependency property.
DefaultToolProperty : DependencyProperty
Identifies the DefaultTool dependency property.
DraggingToolProperty : DependencyProperty
Identifies the DraggingTool dependency property.
DragSelectingToolProperty : DependencyProperty
Identifies the DragSelectingTool dependency property.
DragZoomingToolProperty : DependencyProperty
Identifies the DragZoomingTool dependency property.
ExternalObjectsDroppedEvent : RoutedEvent
Identifies the ExternalObjectsDropped routed event.
FilterProperty : DependencyProperty
Identifies the Filter dependency property.
FirstMouseEventArgsProperty : DependencyProperty
Identifies the FirstMouseEventArgs dependency property.
FirstMousePointInModelProperty : DependencyProperty
Identifies the FirstMousePointInModel dependency property.
FirstMouseTimestampProperty : DependencyProperty
Identifies the FirstMouseTimestamp dependency property.
GridPatternProperty : DependencyProperty
Identifies the GridPattern dependency property.
GridPatternTemplateProperty : DependencyProperty
Identifies the GridPatternTemplate dependency property.
GridSnapCellSizeProperty : DependencyProperty
Identifies the GridSnapCellSize dependency property.
GridSnapCellSpotProperty : DependencyProperty
Identifies the GridSnapCellSpot dependency property.
GridSnapEnabledProperty : DependencyProperty
Identifies the GridSnapEnabled dependency property.
GridSnapOriginProperty : DependencyProperty
Identifies the GridSnapOrigin dependency property.
GridVisibleProperty : DependencyProperty
Identifies the GridVisible dependency property.
GroupTemplateDictionaryProperty : DependencyProperty
Identifies the GroupTemplateDictionary dependency property.
GroupTemplateProperty : DependencyProperty
Identifies the GroupTemplate dependency property.
HasDefaultModelProperty : DependencyProperty
Identifies the HasDefaultModel dependency property.
InitialCenteredNodeDataProperty : DependencyProperty
Identifies the InitialCenteredNodeData dependency property.
InitialDiagramBoundsSpotProperty : DependencyProperty
Identifies the InitialDiagramBoundsSpot dependency property.
InitialLayoutCompletedEvent : RoutedEvent
Identifies the InitialLayoutCompleted routed event.
InitialPanelSpotProperty : DependencyProperty
Identifies the InitialPanelSpot dependency property.
InitialPositionProperty : DependencyProperty
Identifies the InitialPosition dependency property.
InitialScaleProperty : DependencyProperty
Identifies the InitialScale dependency property.
InitialStretchProperty : DependencyProperty
Identifies the InitialStretch dependency property.
IsAnimatingProperty : DependencyProperty
Identifies the read-only IsAnimating dependency property.
IsReadOnlyProperty : DependencyProperty
Identifies the IsReadOnly dependency property.
LastMouseEventArgsProperty : DependencyProperty
Identifies the LastMouseEventArgs dependency property.
LastMousePointInModelProperty : DependencyProperty
Identifies the LastMousePointInModel dependency property.
LastMouseTimestampProperty : DependencyProperty
Identifies the FirstMouseTimestamp dependency property.
LayoutCompletedEvent : RoutedEvent
Identifies the LayoutCompleted routed event.
LayoutManagerProperty : DependencyProperty
Identifies the LayoutManager dependency property.
LayoutProperty : DependencyProperty
Identifies the Layout dependency property.
LinkDrawnEvent : RoutedEvent
Identifies the LinkDrawn routed event.
LinkingToolProperty : DependencyProperty
Identifies the LinkingTool dependency property.
LinkRelinkedEvent : RoutedEvent
Identifies the LinkRelinked routed event.
LinkReshapedEvent : RoutedEvent
Identifies the LinkReshaped routed event.
LinkReshapingToolProperty : DependencyProperty
Identifies the LinkReshapingTool dependency property.
LinksProperty : DependencyProperty
Identifies the read-only Links dependency property.
LinksSourceProperty : DependencyProperty
Identifies the LinksSource dependency property.
LinkTemplateDictionaryProperty : DependencyProperty
Identifies the LinkTemplateDictionary dependency property.
LinkTemplateProperty : DependencyProperty
Identifies the LinkTemplate dependency property.
MaximumSelectionCountProperty : DependencyProperty
Identifies the MaximumSelectionCount dependency property.
ModelProperty : DependencyProperty
Identifies the Model dependency property.
NodeCreatedEvent : RoutedEvent
Identifies the NodeCreated routed event.
NodeResizedEvent : RoutedEvent
Identifies the NodeResized routed event.
NodeRotatedEvent : RoutedEvent
Identifies the NodeRotated routed event.
NodesProperty : DependencyProperty
Identifies the read-only Nodes dependency property.
NodesSourceProperty : DependencyProperty
Identifies the NodesSource dependency property.
NodeTemplateDictionaryProperty : DependencyProperty
Identifies the NodeTemplateDictionary dependency property.
NodeTemplateProperty : DependencyProperty
Identifies the NodeTemplate dependency property.
PanningToolProperty : DependencyProperty
Identifies the PanningTool dependency property.
PartManagerProperty : DependencyProperty
Identifies the PartManager dependency property.
PartsModelProperty : DependencyProperty
Identifies the PartsModel dependency property.
PrintManagerProperty : DependencyProperty
Identifies the PrintManager dependency property.
RelinkingToolProperty : DependencyProperty
Identifies the RelinkingTool dependency property.
ResizingToolProperty : DependencyProperty
Identifies the ResizingTool dependency property.
RotatingToolProperty : DependencyProperty
Identifies the RotatingTool dependency property.
SelectedGroupProperty : DependencyProperty
Identifies the SelectedGroup dependency property.
SelectedLinkProperty : DependencyProperty
Identifies the SelectedLink dependency property.
SelectedNodeProperty : DependencyProperty
Identifies the SelectedNode dependency property.
SelectedPartProperty : DependencyProperty
Identifies the SelectedPart dependency property.
SelectedPartsProperty : DependencyProperty
Identifies the read-only SelectedParts dependency property.
SelectionChangedEvent : RoutedEvent
Identifies the SelectionChanged routed event.
SelectionCopiedEvent : RoutedEvent
Identifies the SelectionCopied routed event.
SelectionDeletedEvent : RoutedEvent
Identifies the SelectionDeleted routed event.
SelectionDeletingEvent : RoutedEvent
Identifies the SelectionDeleting routed event.
SelectionGroupedEvent : RoutedEvent
Identifies the SelectionGrouped routed event.
SelectionMovedEvent : RoutedEvent
Identifies the SelectionMoved routed event.
SelectionUngroupedEvent : RoutedEvent
Identifies the SelectionUngrouped routed event.
StretchProperty : DependencyProperty
Identifies the Stretch dependency property.
TemplateAppliedEvent : RoutedEvent
Identifies the TemplateApplied routed event.
TextEditedEvent : RoutedEvent
Identifies the TextEdited routed event.
TextEditingToolProperty : DependencyProperty
Identifies the TextEditingTool dependency property.
TreePathProperty : DependencyProperty
Identifies the TreePath dependency property.
UnloadingClearsPartManagerProperty : DependencyProperty
Identifies the UnloadingClearsPartManager dependency property.