共用方式為


AssemblyReferences.OnItemChanged 方法

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

會在內容項目儲存至內容項目管理員之前,先對這個項目來呼叫。

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

語法

'宣告
Protected Overrides Sub OnItemChanged ( _
    context As EditingContext, _
    previousItem As ContextItem _
)
protected override void OnItemChanged(
    EditingContext context,
    ContextItem previousItem
)
protected:
virtual void OnItemChanged(
    EditingContext^ context, 
    ContextItem^ previousItem
) override
abstract OnItemChanged : 
        context:EditingContext * 
        previousItem:ContextItem -> unit 
override OnItemChanged : 
        context:EditingContext * 
        previousItem:ContextItem -> unit 
protected override function OnItemChanged(
    context : EditingContext, 
    previousItem : ContextItem
)

參數

備註

這個方法會覆寫 OnItemChanged,如此 AssemblyReferences 即可將現有參考合併至這個物件中。

.NET Framework 安全性

請參閱

參考

AssemblyReferences 類別

Microsoft.Windows.Design 命名空間

其他資源

WPF 設計工具擴充性