'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub MakeRelative( _ ByVal popup As Popup, _ ByVal relativeElement As FrameworkElement, _ ByVal getLocations As Func(Of List(Of AnchorMatching)), _ ByVal getPosition As Func(Of Point), _ ByVal getReferencePosition As Func(Of Point) _ )
'Usage
Dim popup As Popup Dim relativeElement As FrameworkElement Dim getLocations As Func(Of List(Of AnchorMatching)) Dim getPosition As Func(Of Point) Dim getReferencePosition As Func(Of Point) Extensions.MakeRelative(popup, relativeElement, getLocations, getPosition, getReferencePosition)
[Extension()] public static void MakeRelative( Popup popup, FrameworkElement relativeElement, Func<List<AnchorMatching>> getLocations, Func<Point> getPosition, Func<Point> getReferencePosition )
[Extension()] public: static void MakeRelative( Popup^ popup, FrameworkElement^ relativeElement, Func<List<AnchorMatching>^>^ getLocations, Func<Point>^ getPosition, Func<Point>^ getReferencePosition )
Parameters
- popup
- System.Windows.Controls.Primitives.Popup to handle.
- relativeElement
- Element used to locate the popup.
- getLocations
- Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
- getPosition
- Function that retrieves the current position of the Popup.
- getReferencePosition
- Function that retrieves the current position of the reference element.