Calculates the position of a Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static Point TestPosition( Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical ) |
Visual Basic |
---|
Public Shared Function TestPosition ( _ popup As Popup, _ popupAnchor As Anchor, _ element As FrameworkElement, _ elementAnchor As Anchor, _ overlapHorizontal As Double, _ overlapVertical As Double _ ) As Point |
Parameters
- popup
- Type: System.Windows.Controls.Primitives..::..Popup
The popup to position.
- popupAnchor
- Type: C1.Silverlight..::..Anchor
An Anchor value specifying the point in the Popup.
- element
- Type: System.Windows..::..FrameworkElement
The FrameworkElement to use as reference.
- elementAnchor
- Type: C1.Silverlight..::..Anchor
An Anchor value specifying the point in the FrameworkElement.
- overlapHorizontal
- Type: System..::..Double
The horizontal overlap between the elements (used for corner matching's).
- overlapVertical
- Type: System..::..Double
The vertical overlap between the elements (used for corner matching's).