ExtensionMethods::FindAncestorOrSelf<TAncestorType, TElementType> Method (TElementType, Func<TElementType, TElementType>^)

 

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
generic<typename TAncestorType, typename TElementType>
where TAncestorType : DependencyObject
[ExtensionAttribute]
static TAncestorType FindAncestorOrSelf(
	TElementType obj,
	Func<TElementType, TElementType>^ parentEvaluator
)

Parameters

obj
Type: TElementType

parentEvaluator
Type: System::Func<TElementTypeTElementType>^

Return Value

Type: TAncestorType

Type Parameters

TAncestorType

TElementType

Return to top
Show: