CreationTool 类

更新:2007 年 11 月

用于在设计器中新建对象实例的工具。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
Public Class CreationTool _
    Inherits Tool
用法
Dim instance As CreationTool
public class CreationTool : Tool
public ref class CreationTool : public Tool
public class CreationTool extends Tool

备注

若要使用 CreationTool 类,请创建该类并将 CreationType 属性设置为要创建的类型。若要编写使用 CreationTool 的任务,请从编辑上下文中检索该类,然后使用 NewItemFactory 和 ItemParent 类创建类型为 CreationType 的项。

继承层次结构

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

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

CreationTool 成员

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性