ModelParent.Parent Method

Sets the specified item as the parent of the specified child item.

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

Syntax

'Declaration
Public Shared Sub Parent ( _
    context As EditingContext, _
    parentItem As ModelItem, _
    childItem As ModelItem _
)
public static void Parent(
    EditingContext context,
    ModelItem parentItem,
    ModelItem childItem
)
public:
static void Parent(
    EditingContext^ context, 
    ModelItem^ parentItem, 
    ModelItem^ childItem
)
static member Parent : 
        context:EditingContext * 
        parentItem:ModelItem * 
        childItem:ModelItem -> unit 
public static function Parent(
    context : EditingContext, 
    parentItem : ModelItem, 
    childItem : ModelItem
)

Parameters

Remarks

If the child already has a parent, the previous parent will be removed.

.NET Framework Security

See Also

Reference

ModelParent Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture