ModelParent.FindParent Method (EditingContext, ModelItem, ModelItem)
Finds a viable parent for the specified child and editing context.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function FindParent ( _
context As EditingContext, _
childItem As ModelItem, _
startingItem As ModelItem _
) As ModelItem
public static ModelItem FindParent(
EditingContext context,
ModelItem childItem,
ModelItem startingItem
)
public:
static ModelItem^ FindParent(
EditingContext^ context,
ModelItem^ childItem,
ModelItem^ startingItem
)
static member FindParent :
context:EditingContext *
childItem:ModelItem *
startingItem:ModelItem -> ModelItem
public static function FindParent(
context : EditingContext,
childItem : ModelItem,
startingItem : ModelItem
) : ModelItem
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context to use.
- childItem
Type: Microsoft.Windows.Design.Model.ModelItem
The item you wish to parent.
- startingItem
Type: Microsoft.Windows.Design.Model.ModelItem
The item to use as a starting point for the search.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
An item that can accept a childItem, or nulla null reference (Nothing in Visual Basic) if no viable parent could be found.
.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