[]
Calculates the position of a Microsoft.UI.Xaml.FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
public static Point TestPosition(FrameworkElement positionElement, Anchor positionAnchor, FrameworkElement element, Anchor elementAnchor, Point elementOffset, double overlapHorizontal, double overlapVertical, FlowDirection flowDir)
Public Shared Function TestPosition(positionElement As FrameworkElement, positionAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor, elementOffset As Point, overlapHorizontal As Double, overlapVertical As Double, flowDir As FlowDirection) As Point
| Type | Name | Description |
|---|---|---|
| FrameworkElement | positionElement | The element to position. |
| Anchor | positionAnchor | An Anchor value specifying the point in the element to position. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement used as reference. |
| Point | elementOffset | The offset (absolute position) of the reference element. |
| double | overlapHorizontal | The horizontal overlap between the elements (used for corner matching's). |
| double | overlapVertical | The vertical overlap between the elements (used for corner matching's). |
| FlowDirection | flowDir | The FlowDirection used for the calculations. |
| Type | Description |
|---|---|
| Point | The absolute point where the FrameworkElement would be located. |
Calculates the position of a Microsoft.UI.Xaml.FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
public static Point TestPosition(FrameworkElement positionElement, Anchor positionAnchor, FrameworkElement element, Anchor elementAnchor, Point elementOffset, double overlapHorizontal, double overlapVertical)
Public Shared Function TestPosition(positionElement As FrameworkElement, positionAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor, elementOffset As Point, overlapHorizontal As Double, overlapVertical As Double) As Point
| Type | Name | Description |
|---|---|---|
| FrameworkElement | positionElement | The element to position. |
| Anchor | positionAnchor | An Anchor value specifying the point in the element to position. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement used as reference. |
| Point | elementOffset | The offset (absolute position) of the reference element. |
| double | overlapHorizontal | The horizontal overlap between the elements (used for corner matching's). |
| double | overlapVertical | The vertical overlap between the elements (used for corner matching's). |
| Type | Description |
|---|---|
| Point | The absolute point where the FrameworkElement would be located. |
Calculates the position of a Microsoft.UI.Xaml.Controls.Primitives.Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.
public static Point TestPosition(Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical)
Public Shared Function TestPosition(popup As Popup, popupAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor, overlapHorizontal As Double, overlapVertical As Double) As Point
| Type | Name | Description |
|---|---|---|
| Popup | popup | The popup to position. |
| Anchor | popupAnchor | An Anchor value specifying the point in the Popup. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement. |
| double | overlapHorizontal | The horizontal overlap between the elements (used for corner matching's). |
| double | overlapVertical | The vertical overlap between the elements (used for corner matching's). |
| Type | Description |
|---|---|
| Point | The absolute point where the popup would be located |
Calculates the position of a Microsoft.UI.Xaml.Controls.Primitives.Popup so that the specified point in the Popup matches the specified point of a FrameworkElement.
public static Point TestPosition(Popup popup, Anchor popupAnchor, FrameworkElement element, Anchor elementAnchor)
Public Shared Function TestPosition(popup As Popup, popupAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor) As Point
| Type | Name | Description |
|---|---|---|
| Popup | popup | The popup to position. |
| Anchor | popupAnchor | An Anchor value specifying the point in the Popup. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement. |
| Type | Description |
|---|---|
| Point | The absolute point where the popup would be located |
Calculates the position of a Microsoft.UI.Xaml.FrameworkElement so that the specified point in the FrameworkElement matches the specified point of another FrameworkElement.
public static Point TestPosition(FrameworkElement positionElement, Anchor positionAnchor, FrameworkElement element, Anchor elementAnchor, double overlapHorizontal, double overlapVertical)
Public Shared Function TestPosition(positionElement As FrameworkElement, positionAnchor As Anchor, element As FrameworkElement, elementAnchor As Anchor, overlapHorizontal As Double, overlapVertical As Double) As Point
| Type | Name | Description |
|---|---|---|
| FrameworkElement | positionElement | The element to position. |
| Anchor | positionAnchor | An Anchor value specifying the point in the element to position. |
| FrameworkElement | element | The Microsoft.UI.Xaml.FrameworkElement to use as reference. |
| Anchor | elementAnchor | An Anchor value specifying the point in the FrameworkElement used as reference. |
| double | overlapHorizontal | The horizontal overlap between the elements (used for corner matching's). |
| double | overlapVertical | The vertical overlap between the elements (used for corner matching's). |
| Type | Description |
|---|---|
| Point | The absolute point where the FrameworkElement would be located. |