Search
DiagramView Members
Constructors Fields Properties Methods Events
 


Displays the content of a Diagram object and provides the ability to autoscroll and display scrollbars.

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

 Public Constructors

  Name Description

DiagramView

Initializes a new instance of the DiagramView class.

 Public Fields

  Name Description

ZoomFactorProperty

Identifies the ZoomFactor bindable property.

 Public Properties

  Name Description

AllowInplaceDelete

Gets or sets a value indicating whether the users can delete items through the context menu.

AllowInplaceEdit

Gets or sets a value indicating whether the users can in-place edit items.

AutoScroll

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

AutoScrollAmount

Gets or sets the step used to translate the view during autoscrolling.

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 user input.

DelKeyAction

Gets or sets a value that specifies what action should be performed when the user presses the Del key.

Diagram

Gets or sets the diagram displayed by this view.

HScrollBar

Gets the horizontal scrollbar of the control.

InteractionPoint

For internal use.

IsAutoScrollInteracting

For internal use.

IsDragging

For internal use.

IsInteracting

For internal use.

IsScrollActive

Checks if the specified device point is located over the scroll area.

LicenseKey

Gets or sets the license key of the control.

Menu

Gets a reference to the currently displayed context menu.

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 the control allows drawing multiple items simultaneously.

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.

ScrollToggle

Gets the scroll toggle control associated with this diagram.

ScrollToggleActiveColor

Gets or sets the color of the scroll toggle when it is activated.

ScrollToggleColor

Gets or sets the color of the scroll toggle.

ScrollX

Gets the diagram's horizontal scroll position.

ScrollY

Gets the diagram's vertical scroll position.

ScrollZoneSize

Gets or sets the distance from the edge of the view where user interactions would trigger autoscrolling.

ShowContextMenu

Gets or sets a value indicating whether to display context menu when the user taps and holds over an item.

ShowScrollToggle

Gets or sets a value indicating whether to display the scroll toggle control in the bottom left of the diagram.

SystemScrollView

Gets or sets whether to use MAUI standard ScrollView to implement scrolling.

Viewport

Returns the visible portion of the diagram area.

VScrollBar

Gets the vertical scrollbar of the control.

ZoomFactor

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

 Public Methods

  Name Description

AddChild

For internal use.

BeginEdit

Enters in-place edit mode, letting the user edit the text of the specified item.

CancelDrag

Cancels the current drawing interaction.

ClientToDoc

Overloaded.  

ClientToSystem

Converts a point from MAUI device independent coordinates to system pixels.

DiagramToView

Overloaded. Transforms specified point from diagram to view coordinates.

DocToClient

Overloaded.  

EndEdit

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

GetGraphics

For internal use.

PresenterToView

Converts a point from DiagramPresenter to view coordinates.

RemoveChild

For internal use.

ScrollTo

Overloaded.  

SetTransform

Overloaded.  

ViewToDiagram

Overloaded. Transforms specified point from view to diagram coordinates.

ZoomToFit

Zooms the view to fit the document contents in the Diagram client area.

 Protected Methods

  Name Description

OnAdded

Layout.OnAdded override.

OnCreateEditControl

Raises the CreateEditControl event.

OnDestroyEditControl

Raises the DestroyEditControl event.

OnEnterInplaceEditMode

Raises the EnterInplaceEditMode event.

OnLeaveInplaceEditMode

Raises the LeaveInplaceEditMode event.

OnLongPressed

Raises the LongPressed event.

OnParentSet

VisualElement.OnParentSet override.

OnRadialMenuCreated

Raises the RadialMenuCreated event.

OnRemoved

Layout.OnRemoved override.

OnScrollChanged

Raises the ScrollChanged event.

OnSizeAllocated

Raises the size allocated event.

OnSizeRequest

This method is called during the measure pass of a layout cycle to get the desired size of an element.

OnTouchCancel

Raises the TouchCancel event.

OnTouchDown

Raises the TouchDown event.

OnTouchMove

Raises the TouchMove event.

OnTouchUp

Raises the TouchUp event.

OnZoomFactorChanged

Raises the ZoomFactorChanged event.

 Public Events

  Name Description

CreateEditControl

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

DestroyEditControl

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

EnterInplaceEditMode

Raised when entering in-place edit mode.

LeaveInplaceEditMode

Raised when leaving in-place edit mode.

LongPressed

Raised when the user performs a long press gesture inside the diagram.

RadialMenuCreated

Raised when the context menu is displayed.

ScrollChanged

Occurs when the scroll position changes.

TouchCancel

Raised when the system cancels touch gestures.

TouchDown

Raised when the user touches inside the diagram.

TouchMove

Raised when the user drags inside the diagram.

TouchUp

Raised when the user releases a touch inside the diagram.

ZoomFactorChanged

Occurs when the zoom factor changes.

 See Also