What is the difference between a MenuItem and a CheckboxMenuItem

The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked.

Showing Answers 1 - 3 of 3 Answers

For understanding purpose,Menu Item and check box menu items could be considered as classes.


Menu item is a parent class, check box menu item is a sub class(child class) that inherits from the menu item class. As a result, menu will be having an option to be checked or unchecked.

Menu item has always one event. That is, consider a file. If you click on it, it opens as a dialog box and can be considered as a single event. Where as, If u consider the checkbox menu item, there will be two state that is, on and off. If it is on, then the status will be available in the internet explorer. If it is been clicked once more, the status will show as off. Hence ,can say that it toggles between two states.

This is the difference between menuitem and checkbox menuitem

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions