共用方式為


CreationTool.CreationType 屬性

取得或設定這個工具應建立之物件的型別。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Property CreationType As Type
    Get
    Set
public Type CreationType { get; set; }
public:
property Type^ CreationType {
    Type^ get ();
    void set (Type^ value);
}
member CreationType : Type with get, set
function get CreationType () : Type
function set CreationType (value : Type)

屬性值

型別:System.Type
Type 物件,表示這個工具應該建立之物件的型別。例如,如果這個工具要建立按鈕,則這個屬性應為 typeof(Button)。

.NET Framework 安全性

請參閱

參考

CreationTool 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

了解 WPF 設計工具擴充性