ModelParent Class
A class that can be used to help set the parent of an item.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Model.ModelParent
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public NotInheritable Class ModelParent
public static class ModelParent
public ref class ModelParent abstract sealed
[<AbstractClass>]
[<Sealed>]
type ModelParent = class end
public final class ModelParent
The ModelParent type exposes the following members.
Methods
Name | Description | |
---|---|---|
CanParent | Determines if the specified type can be the parent of the specified child type. | |
FindParent(Type, GestureData) | Finds a viable parent for the specified type of child. | |
FindParent(EditingContext, ModelItem, ModelItem) | Finds a viable parent for the specified child and editing context. | |
FindParent(EditingContext, Type, ModelItem) | Finds a viable parent for the specified type of child and editing context. | |
Parent | Sets the specified item as the parent of the specified child item. |
Top
Remarks
While you can directly set the parent of objects using the properties on items in the editing model, The ModelParent class allows you to know what objects can be parented into each other. ModelParent allows you to easily change parents from one object to another. ModelParent uses the ParentAdapter class on objects to understand parenting rules.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Model Namespace