method MenuButton.Dismiss ()
Closes the popup menu if it is opened.

TypeDescription

Closes the assigned menu by code.