ModelParent.FindParent Method (Type, GestureData)
Finds a viable parent for the specified type of child.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function FindParent ( _
childType As Type, _
gestureData As GestureData _
) As ModelItem
public static ModelItem FindParent(
Type childType,
GestureData gestureData
)
public:
static ModelItem^ FindParent(
Type^ childType,
GestureData^ gestureData
)
static member FindParent :
childType:Type *
gestureData:GestureData -> ModelItem
public static function FindParent(
childType : Type,
gestureData : GestureData
) : ModelItem
Parameters
- childType
Type: System.Type
The type of item you wish to parent.
- gestureData
Type: Microsoft.Windows.Design.Interaction.GestureData
Gesture data that can be used to determine the starting item and position of the search.
Return Value
Type: Microsoft.Windows.Design.Model.ModelItem
An item that can accept an item of type childType, 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