Freigeben über


ModelParent.Parent-Methode

Legt das angegebene Element als übergeordnetes Element des angegebenen untergeordneten Elements fest.

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
)

Parameter

Hinweise

Wenn das untergeordnete Element bereits ein übergeordnetes Element hat, wird das vorherige übergeordnete Element entfernt.

.NET Framework-Sicherheit

Siehe auch

Referenz

ModelParent Klasse

Microsoft.Windows.Design.Model-Namespace

Weitere Ressourcen

Erweiterbare Architektur des WPF-Designers