Makes the popup relative to another FrameworkElement.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static void MakeRelative( this Popup popup, FrameworkElement relativeElement, Func<List<AnchorMatching>> getLocations, Func<Point> getPosition, Func<Point> getReferencePosition ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Sub MakeRelative ( _ popup As Popup, _ relativeElement As FrameworkElement, _ getLocations As Func(Of List(Of AnchorMatching)), _ getPosition As Func(Of Point), _ getReferencePosition As Func(Of Point) _ ) |
Parameters
- popup
- Type: System.Windows.Controls.Primitives..::..Popup
Popup to handle.
- relativeElement
- Type: System.Windows..::..FrameworkElement
Element used to locate the popup.
- getLocations
- Type: System..::..Func<(Of <(<'List<(Of <(<'AnchorMatching>)>)>>)>)>
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
- getPosition
- Type: System..::..Func<(Of <(<'Point>)>)>
Function that retrieves the current position of the Popup.
- getReferencePosition
- Type: System..::..Func<(Of <(<'Point>)>)>
Function that retrieves the current position of the reference element.