Delen via


Popup.PlacementTarget Property

Definition

Gets or sets the element to use as the popup's placement target.

public:
 property FrameworkElement ^ PlacementTarget { FrameworkElement ^ get(); void set(FrameworkElement ^ value); };
FrameworkElement PlacementTarget();

void PlacementTarget(FrameworkElement value);
public FrameworkElement PlacementTarget { get; set; }
var frameworkElement = popup.placementTarget;
popup.placementTarget = frameworkElement;
Public Property PlacementTarget As FrameworkElement

Property Value

The element to use as the popup's placement target.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to