Table of Contents

Class CreateComponentTool

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

A tool that creates a component.

public class CreateComponentTool : ITool, IToolItemAdder
Inheritance
CreateComponentTool
Implements

Constructors

CreateComponentTool(Type)

Creates a new CreateComponentTool instance.

Fields

componentType

Properties

ChangeGroup
ComponentType

Gets the type of the component to be created.

CreatePoint
Cursor

Gets the Cursor for this tool.

MoveLogic
NeedToCancelDragOnException

Methods

Activate(IDesignPanel)

Activates specified panel.

AddItemWithCustomSize(DesignItem, DesignItem, Point, Size)

Adds the given item with the specified size.

AddItemWithCustomSizePosition(DesignItem, Type, Size, Point)

When implemented by a class, adds the given item with the specified size and position.

AddItemWithDefaultSize(DesignItem, DesignItem, Point)

Adds the given item with the default size.

AddItemWithDefaultSize(DesignItem, Type, Size)

Adds the given item with the specified size and default position.

CreateClickOrDragMouseGesture(DesignPanelHitTestResult, DesignItem)
CreateItem(DesignContext)

Is called to create the item used by the CreateComponentTool.

Deactivate(IDesignPanel)

Deactivates specified panel.

OnDesignPanelDragLeave(object, DragEventArgs)
OnDesignPanelDragOver(object, DragEventArgs)
OnDesignPanelDrop(object, DragEventArgs)
OnDesignPanelQueryContinueDrag(object, QueryContinueDragEventArgs)
OnMouseDown(object, MouseButtonEventArgs)