Summary
Gets or sets the the anchor rectangle within the parent that the context menu will be placed
relative to when
PlacementMode
is AnchorAndGravity
.
- Namespace
- Avalonia
.Controls - Containing Type
- ContextMenu
Syntax
public Rect? PlacementRect { get; set; }
Remarks
The placement rect defines a rectangle relative to
PlacementTarget
around
which the popup will be opened, with PlacementAnchor
determining which edge
of the placement target is used.
If unset, the anchor rectangle will be the bounds of the PlacementTarget
.
Value
Type | Description |
---|---|
Rect? |