You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The placement for the sub-items in the ContextMenu works incorrectly if the popup is displayed above the parent control. This happens because of the DropShadowEffect that is added to the child item popup and requires some offsets and margins to be aligned. This works fine in cases when the popup is placed below the parent element.
To Reproduce
I've added the following ContextMenu to the Gallery app NotifyIcon:
The popup should be placed right next to the MenuItem. We can achieve that by removing the DropShadowEffect and setting the VerticalOffset and Margin to 0
Screenshots
OS version
Win 11 24H2
.NET version
8.0
WPF-UI NuGet version
latest main branch
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The placement for the sub-items in the
ContextMenu
works incorrectly if the popup is displayed above the parent control. This happens because of theDropShadowEffect
that is added to the child item popup and requires some offsets and margins to be aligned. This works fine in cases when the popup is placed below the parent element.To Reproduce
I've added the following
ContextMenu
to the Gallery appNotifyIcon
:Expected behavior
The popup should be placed right next to the
MenuItem
. We can achieve that by removing theDropShadowEffect
and setting theVerticalOffset
andMargin
to 0Screenshots
OS version
Win 11 24H2
.NET version
8.0
WPF-UI NuGet version
latest main branch
Additional context
No response
The text was updated successfully, but these errors were encountered: