Makes the popup relative to another FrameworkElement.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static void MakeRelative(
	this Popup popup,
	FrameworkElement relativeElement,
	Func<List<AnchorMatching>> getLocations
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub MakeRelative ( _
	popup As Popup, _
	relativeElement As FrameworkElement, _
	getLocations As Func(Of List(Of AnchorMatching)) _
)

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Popup. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also