SharedWindowFindChildT Method

Finds a Child of a given item in the visual tree.

Definition

Namespace: Aliquo.Windows
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public static T FindChild<T>(
	DependencyObject parent,
	string childName
)
where T : DependencyObject

Parameters

parent  DependencyObject
A direct parent of the queried item.
childName  String
x:Name or Name of child.

Type Parameters

T
The type of the queried item.

Return Value

T
The first parent item that matches the submitted type parameter.

Remarks

If not matching item can be found, a parent is being returned.

See Also