Edit

Share via


FrameworkElementHelpers.GetAncestorValue<T> Method

Definition

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T GetAncestorValue(System::Windows::DependencyObject ^ reference, System::Windows::DependencyProperty ^ property);
public static T GetAncestorValue<T> (this System.Windows.DependencyObject reference, System.Windows.DependencyProperty property);
static member GetAncestorValue : System.Windows.DependencyObject * System.Windows.DependencyProperty -> 'T
<Extension()>
Public Function GetAncestorValue(Of T) (reference As DependencyObject, property As DependencyProperty) As T

Type Parameters

T

Parameters

reference
DependencyObject

Returns

T

Applies to