Calculates the position of a FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static Point TestPosition( FrameworkElement positionElement, Anchor positionAnchor, FrameworkElement element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical ) |
Visual Basic |
---|
Public Shared Function TestPosition ( _ positionElement As FrameworkElement, _ positionAnchor As Anchor, _ element As FrameworkElement, _ elementAnchor As Anchor, _ overlapHorizontal As Double, _ overlapVertical As Double _ ) As Point |
Parameters
- positionElement
- Type: System.Windows..::..FrameworkElement
The element to position.
- positionAnchor
- Type: C1.Silverlight..::..Anchor
An Anchor value specifying the point in the element to position.
- 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 used as reference.
- 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).