-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popup placement properties API spec #4905
Conversation
…to account when its popup is windowed.
Fixing typo.
Updating "AnchorElement" to be "Target" instead.
Updating Target to be PlacementTarget instead.
624ba45
to
9513b70
Compare
…tMonitorCheck' into user/llongley/PopupPlacementAPISpec
…ation into account when its popup is windowed." This reverts commit 564a099.
…com/microsoft/microsoft-ui-xaml into user/llongley/PopupPlacementAPISpec
## Popup.PlacementTarget property | ||
|
||
Use this property to describe which element the `Popup` should be positioned relative to. | ||
Defaults to `null`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the addition of this property will require some reworking of the existing Popup documentation that talks about placement.
In fact, we forgot to update the Popup documentation when we added ShouldConstrainToRootBounds
. The Popup documentation still says right there in the first sentence, "Displays content on top of existing content, within the bounds of the application window" which is no longer true if ShouldConstrainToRootBounds
is false.
Co-authored-by: Raymond Chen <oldnewthing@users.noreply.github.com>
Changed PlacementTarget from UIElement to FrameworkElement - this doesn't change the use cases any, and we need the layout properties on FrameworkElement.
Updating with final API names.
@llongley is this something that we are still planning on doing? If not we should close out this PR. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This adds a spec for proposed new APIs on Popup that will add the ability to position a Popup relative to another element:
https://github.com/microsoft/microsoft-ui-xaml/blob/user/llongley/PopupPlacementAPISpec/specs/Popup-AdditionalLayoutProperties-Spec.md