Close a MenuItem.Popup without a mouse click

I have a menu opened by MenuItem.Popup, when the mouse enters the corresponding rectangle (MouseEnter).

How to make it close on a MouseExit without the click of the mouse? (so that another menu can take place if the mouse arrives in another rectangle)

Can you not use the method “Close” at the MouseExit event?