Share via


XamlUIPresenter.GetFlyoutPlacementTargetInfo Method

Definition

Returns calculated bounds of a placement target that is intended to also display a flyout in the host. Additional out parameters provide more info on how the bounds were calculated.

public:
 static Rect GetFlyoutPlacementTargetInfo(FrameworkElement ^ placementTarget, FlyoutPlacementMode preferredPlacement, [Out] FlyoutPlacementMode & targetPreferredPlacement, [Out] bool & allowFallbacks);
 static Rect GetFlyoutPlacementTargetInfo(FrameworkElement const& placementTarget, FlyoutPlacementMode const& preferredPlacement, [Out] FlyoutPlacementMode & targetPreferredPlacement, [Out] bool & allowFallbacks);
public static Rect GetFlyoutPlacementTargetInfo(FrameworkElement placementTarget, FlyoutPlacementMode preferredPlacement, out FlyoutPlacementMode targetPreferredPlacement, out bool allowFallbacks);
Public Shared Function GetFlyoutPlacementTargetInfo (placementTarget As FrameworkElement, preferredPlacement As FlyoutPlacementMode, ByRef targetPreferredPlacement As FlyoutPlacementMode, ByRef allowFallbacks As Boolean) As Rect

Parameters

placementTarget
FrameworkElement

The placement target element that the Flyout should be positioned in relation to.

preferredPlacement
FlyoutPlacementMode

A value of the enumeration that declares the host's preferred placement of the Flyout relative to the target.

targetPreferredPlacement
FlyoutPlacementMode

A value of the enumeration that declares preferred placement of the Flyout.

allowFallbacks
Boolean

bool

true if fallback placements are permitted for the Flyout placement logic. false if only the targetPreferredPlacement value should be considered.

Returns

The calculated placement target bounds.

Applies to