DropDownButton support for the ContextMenu Placement option in flyout
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe
If you create a DropDownButton with a Flyout that includes ContextMenu Placment=Top it doesn't respect that setting:
<ui:NavigationView.PaneFooter>
<ui:DropDownButton Content="Ansicht" Margin="0,0,0,10" Background="Transparent" HorizontalAlignment="Stretch">
<ui:DropDownButton.Flyout>
<ContextMenu Placement="Top">
<ui:MenuItem Header="Stammdaten"/>
<ui:MenuItem Header="Einstellungen"/>
</ContextMenu>
</ui:DropDownButton.Flyout>
</ui:DropDownButton>
</ui:NavigationView.PaneFooter>
Describe the solution you'd like
That the Placment option of the ContextMenu defines where the DropDownButton opens the Flyout like the MenuFlyout in WinUI.
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the DropDownButton.Flyout and ContextMenu Placement entry points in the WPF UI implementation. Reproduce the shown XAML case with Placement="Top" and verify that the DropDownButton opens the flyout above the button, matching the requested MenuFlyout behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100