Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context to use.
- parentItem
Type: Microsoft.Windows.Design.Model.ModelItem
The parent to set the child into.
- childItem
Type: Microsoft.Windows.Design.Model.ModelItem
The child to be parented.
Remarks
If the child already has a parent, the previous parent will be removed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace