Search
ShapeDesigner Class
Remarks See Also
 





Represents an interactive vector-drawing control that can be used to design node shapes.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public class ShapeDesigner : Control

Visual Basic  Copy Code

Public Class ShapeDesigner
    Inherits Control

 Remarks

The ShapeDesigner component implements a vector-drawing canvas where Shape definitions can be created interactively. Call the ImportShape method to open a shape for editing. Call the ExportShape method to create a Shape with specified Id from current content of the designer canvas.

ShapeDesigner shows a palette with two kinds of elements: Primitives which when dropped on the canvas add a single curve or line segment, and Templates which when dropped on canvas add a closed path of several graphic primitives. It supports the following drag-and-drop operations:

  • dropping a primitive over existing element of a shape outline replaces the element.
  • dropping a primitive over the joint of two outline elements inserts the element between them.
  • dropping a primitive on an empty area of the canvas adds a decoration to the Shape.
  • dropping a template over the shape outline replaces all elements of the outline with ones from the template.
  • dropping a template on an empty area of the canvas adds a filled ShapeDecoration to the Shape.
  • dropping a template over a ShapeDecoration replaces its elements.

 Inheritance Hierarchy

System.Object
    System.Windows.Threading.DispatcherObject
        System.Windows.DependencyObject
            System.Windows.Media.Visual
                System.Windows.UIElement
                    System.Windows.FrameworkElement
                        System.Windows.Controls.Control
                            MindFusion.Diagramming.Wpf.ShapeDesigner

 See Also