pbastia
Topic Author
Posts: 14
Joined: 15 May 2017, 19:19

ContextMenu not closing properly when using complex template (Unity)

01 Sep 2017, 17:22

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.
contextMenu.png
contextMenu.png (1.95 KiB) Viewed 1080 times
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:
	<Border Background="#22000000">
		<Border.ContextMenu>
			<ContextMenu>
				<MenuItem>
					<MenuItem.Header>
						<Button Content="something"/>
					</MenuItem.Header>
				</MenuItem>
			</ContextMenu>
		</Border.ContextMenu>
	</Border>
 
User avatar
sfernandez
Site Admin
Posts: 1911
Joined: 22 Dec 2011, 19:20

Re: ContextMenu not closing properly when using complex template (Unity)

01 Sep 2017, 19:51

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.
 
pbastia
Topic Author
Posts: 14
Joined: 15 May 2017, 19:19

Re: ContextMenu not closing properly when using complex template (Unity)

01 Sep 2017, 21:04

Reported, thanks a lot!

Who is online

Users browsing this forum: Google [Bot] and 2 guests