Method UpdateCommandState
UpdateCommandState()
Updates the enabled state of the menu item based on the associated command. If there is no command associated, the method does not update enabled state. Additionally, it updates enabled state of child menu items if any.
public override void UpdateCommandState()