CreationTool Class

A tool that is used to create new instances of objects on the designer.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Class CreationTool _
    Inherits Tool
'Usage
Dim instance As CreationTool
public class CreationTool : Tool
public ref class CreationTool : public Tool
public class CreationTool extends Tool

Remarks

To use the CreationTool class, create it and set the CreationType property to the type you want to create. To write a task that uses the CreationTool, retrieve it from the editing context and use the NewItemFactory and ItemParent classes to create an item of type CreationType.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.ContextItem
    Microsoft.Windows.Design.Interaction.Tool
      Microsoft.Windows.Design.Interaction.CreationTool

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CreationTool Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility