I have dropped a FlexLayoutPanel into a Page and then a MenuBar into the panel. Created some Items and added a MenuItemClicked event to one of them. While debugging, realized the event never got fired once I clicked the menu item. So I added a Click event handler and it worked just fine. Just curious, will the MenuItemClicked get fired in some different scenario?
MenuItemClicked fires when you click a MenuItem (child menu item). It allows a menu control to handle events on child menu items instead of having to attach the Click event on each menu item. The clicked menu item is referenced in e.MenuItem.
Thanks for the explanation Luca. I am probably doing something wrong, then, as the MenuItemClicked handler never runs. However, it is so straight forward that I can’t think of anything else that should be done.
Please login first to submit.