共用方式為


PropertyContainer.SetOwningPropertyContainer 方法

設定所指定相依性物件的 OwningPropertyContainer 附加屬性值。

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

語法

'宣告
Public Shared Sub SetOwningPropertyContainer ( _
    dependencyObject As DependencyObject, _
    value As PropertyContainer _
)
public static void SetOwningPropertyContainer(
    DependencyObject dependencyObject,
    PropertyContainer value
)
public:
static void SetOwningPropertyContainer(
    DependencyObject^ dependencyObject, 
    PropertyContainer^ value
)
static member SetOwningPropertyContainer : 
        dependencyObject:DependencyObject * 
        value:PropertyContainer -> unit 
public static function SetOwningPropertyContainer(
    dependencyObject : DependencyObject, 
    value : PropertyContainer
)

參數

.NET Framework 安全性

請參閱

參考

PropertyContainer 類別

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

WPF 設計工具擴充性

屬性編輯架構

相依性屬性概觀