Method UpdateCommandState
UpdateCommandState()
Updates the enabled state of the child menu items based on their associated command. If there is no command associated with the menu item, its state is not updated.
public virtual void UpdateCommandState()