Search
DiagramView Members
Constructors Fields Properties Methods Events
 


A WPF control that displays the content of a Diagram object.

The following tables list the members exposed by the DiagramView type.

 Public Constructors

  Name Description

DiagramView

Creates DiagramView instance

 Public Fields

  Name Description

BehaviorProperty

Identifies the Behavior dependency property.

DiagramProperty

Identifies the Diagram dependency property.

ScrollClickDeltaProperty

Identifies the ScrollClickDelta dependency property.

ScrollWheelDeltaProperty

Identifies the ScrollWheelDelta dependency property.

ScrollXProperty

Identifies the ScrollX dependency property.

ScrollYProperty

Identifies the ScrollY dependency property.

ZoomFactorProperty

Identifies the ZoomFactor dependency property.

 Public Properties

  Name Description

AllowInplaceEdit

Gets or sets a value indicating whether in-place editing of the text of objects is enabled.

AutoScroll

Gets or sets a value indicating whether automatic scrolling is enabled.

Behavior

Gets or sets a value indicating how the control responds to user actions.

CustomBehavior

Gets or sets a custom behavior object specifying how MindFusion.Diagramming responds to mouse input.

Diagram

Gets or sets the Diagram displayed by this view.

DragIndicatorOpacity

Gets or sets the opacity of ghost image displayed during drag-and-drop from NodeListView.

EnableMultiTouch

Gets or sets whether the control handles touch events to implement multi-touch interactions.

HorizontalDropAlignment

Gets or sets the horizontal placement of nodes created by drag-and-drop operations, relatively to mouse cursor.

InactiveViewOpacity

The opacity of inactive views.

InplaceEditAcceptOnEnter

Gets or sets a value indicating whether pressing the ENTER key should exit inplace-edit mode and accept changes made to text.

InplaceEditCancelOnEsc

Gets or sets a value indicating whether pressing the ESC key should exit inplace-edit mode and reject changes made to text.

InplaceEditFont

Gets or sets the font of the inplace-edit text box.

Interaction

Gets an InteractionState instance representing the current action being carried out by the user.

LicenseKey

Gets or sets the license key of the control.

MagnifierEnabled

Gets or sets a value indicating whether the magnifier tool is currently enabled.

MiddleButtonActions

Gets or sets a combination of flags that specify what actions can be performed via the middle mouse button.

ModificationStart

Gets or sets how users can start modifying diagram items.

ModifierKeyActions

Gets an object, which allows changing the function of keyboard modifier keys such as Ctrl and Alt.

MultiTouchDraw

Gets or sets a value indicating whether multi-touch drawing is enabled.

MultiTouchModify

Gets or sets a value indicating whether multi-touch modifications are enabled.

MultiTouchZoom

Gets or sets a value indicating whether multi-touch zoom is enabled.

PanInertia

Gets or sets a value indicating whether panning the view will have inertia.

RightButtonActions

Gets or sets a combination of flags that specify what actions can be performed via the right mouse button.

ScrollClickDelta

Gets or sets the amount to add to scroll position from scrollbar arrow event handlers.

ScrollWheelDelta

Gets or sets the amount to add to scroll position from mouse wheel event handlers.

ScrollX

Gets or sets the horizontal scroll position of the Diagram.

ScrollY

Gets or sets the vertical scroll position of the Diagram.

ScrollZoneSize

Gets or sets the size of the auto scroll zone near the edges of the control.

ToolTipDelay

Gets or sets the time in milliseconds that mouse pointer should remain stationary before showing items' tool-tips.

TouchGestureDistance

Gets or sets max distance (pixels) at which touch-down events are considered part of same gesture.

TouchGestureInterval

Gets or sets max time interval (milliseconds) in which touch-down events are considered part of same gesture.

VerticalDropAlignment

Gets or sets the vertical placement of nodes created by drag-and-drop operations, relatively to mouse cursor.

View

A component that renders the diagram inside inactive views.

Viewport

Returns the visible area of the diagram.

ZoomFactor

Gets or sets the effective zoom factor used to scale up or down the Diagram.

 Protected Properties

  Name Description

DiagramToViewMatrix

Returns a Matrix representing the transformation from diagram logical coordinates to the control's actual WPF device-indepepndent point coordinates.

LogicalChildren

Control.LogicalChildren override.

 Public Methods

  Name Description

BeginEdit

Overloaded. Enters inplace-edit mode, letting the user edit the text of the specified item.

BringIntoView

Overloaded. Scrolls the view to make the specified item visible.

CancelDrag

Cancels the current drag operation.

CloseToolTip

Closes current tooltip window.

DiagramToView

Overloaded. Transform coordinates from diagram to view coordinate system.

EndEdit

Exits inplace-edit mode and either accepts or rejects the changes made to the item's text.

OnApplyTemplate

Control.OnApplyTemplate override.

ScrollTo

Overloaded. Scrolls the view to specified position.

SetBehavior

Sets a value indicating how the control responds to user actions.

SetZoomFactor

Sets the zoom factor, preserving the on-screen position of the specified diagram point.

ViewToDiagram

Overloaded. Transform coordinates from view to diagram coordinate system.

ZoomIn

Zooms the diagram, making its items appear closer.

ZoomOut

Zooms the diagram out, making items appear further away.

ZoomToFit

Zooms the view to fit the diagram contents in the view client area.

ZoomToRect

Overloaded. Zooms and scrolls the view to fit the specified diagram rectangle in the viewport.

 Protected Methods

  Name Description

OnContextMenuOpening

Control.OnContextMenuOpening override.

OnCreateEditControl

Raises the CreateEditControl event.

OnCreateToolTipControl

Raises the CreateToolTipControl event.

OnDestroyEditControl

Raises the DestroyEditControl event.

OnMouseLeave

Control.OnMouseLeave override.

OnPreviewDragEnter

Control.OnPreviewDragEnter override.

OnPreviewDragLeave

Control.OnPreviewDragLeave override.

OnPreviewDragOver

Control.OnPreviewDragOver override.

OnPreviewDrop

Handles dropping of DraggedNode instances

 Public Events

  Name Description

CreateEditControl

Raised to let you create a custom in-place editor control.

CreateToolTipControl

Raised to let you create a custom tool-tip control.

DestroyEditControl

Raised to let you destroy a custom in-place editor control.

DiagramChanged

Occurs when the Diagram property value has changed.

ScrollChanged

Occurs when the scroll position has changed.

ZoomFactorChanged

Occurs when the ZoomFactor property value has changed.

 See Also