Table of Contents

Method ParentOfType

Namespace
Alternet.FormDesigner.Wpf.Toolbox
Assembly
Alternet.FormDesigner.Wpf.v10.dll

ParentOfType<T>(DependencyObject)

Find a sequence of children of type T

public static T ParentOfType<T>(this DependencyObject control) where T : DependencyObject

Parameters

control DependencyObject

Returns

T

Type Parameters

T

ParentOfType<T>(DependencyObject, Predicate<T>)

Find a sequence of children of type T and apply filter if applicable

public static T ParentOfType<T>(this DependencyObject control, Predicate<T> filter) where T : DependencyObject

Parameters

control DependencyObject
filter Predicate<T>

Returns

T

Type Parameters

T