Share via


ParentAdapter.IsParent Method

Gets a value indicating whether the specified child item is a child of the specified parent item.

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

Syntax

'Declaration
Public Overridable Function IsParent ( _
    parent As ModelItem, _
    child As ModelItem _
) As Boolean
public virtual bool IsParent(
    ModelItem parent,
    ModelItem child
)
public:
virtual bool IsParent(
    ModelItem^ parent, 
    ModelItem^ child
)
abstract IsParent : 
        parent:ModelItem * 
        child:ModelItem -> bool 
override IsParent : 
        parent:ModelItem * 
        child:ModelItem -> bool 
public function IsParent(
    parent : ModelItem, 
    child : ModelItem
) : boolean

Parameters

Return Value

Type: System.Boolean
true if child is a child item of parent; otherwise, false.

Remarks

The IsParent method is used to determine whether the CanParent method should be called. The default implementation checks the Parent property of child.

.NET Framework Security

See Also

Reference

ParentAdapter Class

Microsoft.Windows.Design.Interaction Namespace

ModelParent

ModelItem

Other Resources

WPF Designer Extensibility