Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't override Placement when Open called in code. (#13967)
#6059 changed `ContextMenu.Open` to open the context menu at the bottom of the control when the `ContextRequestedEventArgs` doesn't contain a position, however it also had the side-effect of preventing the `Placement` property from being respected when opening a `ContextMenu` from code. Change the private `Open` method to accept a `PlacementMode` instead of a boolean flag, and only pass `Bottom` here when `ContextRequestedEventArgs` has no requested position. Fixes #12504
- Loading branch information