ContextMenu not closing properly when using complex template (Unity)
Hi,
I'm having a case where the context menu won't close after it has been open, when I put a button (or anything more than a label) inside a MenuItem header.
Things will behave properly until I click on the content (the button here). After this, the menu won't close with a click outside of it.
Clicking on the zone between the button and the edge of the menu causes things to work properly again.
Would there be anything I forgot, to get a consistent behaviour?
Thanks a lot,
Pierre
My WPF code:
I'm having a case where the context menu won't close after it has been open, when I put a button (or anything more than a label) inside a MenuItem header.
Things will behave properly until I click on the content (the button here). After this, the menu won't close with a click outside of it.
Clicking on the zone between the button and the edge of the menu causes things to work properly again.
Would there be anything I forgot, to get a consistent behaviour?
Thanks a lot,
Pierre
My WPF code:
Code: Select all
<Border Background="#22000000">
<Border.ContextMenu>
<ContextMenu>
<MenuItem>
<MenuItem.Header>
<Button Content="something"/>
</MenuItem.Header>
</MenuItem>
</ContextMenu>
</Border.ContextMenu>
</Border>
-
-
sfernandez
Site Admin
- Posts: 2056
- Joined:
Re: ContextMenu not closing properly when using complex template (Unity)
Nothing wrong on your side, it is a bug in Noesis.
Could you please report it in our bugtracker, we will fix it as soon as possible.
Could you please report it in our bugtracker, we will fix it as soon as possible.
Re: ContextMenu not closing properly when using complex template (Unity)
Reported, thanks a lot!
Who is online
Users browsing this forum: Bing [Bot] and 1 guest