protected void OnCollectionInserted(int index, object value)
{
MenuCommand mc = value as MenuCommand;
// We need notification whenever the properties of this command change
mc.PropertyChanged += new MenuCommand.PropChangeHandler(OnCommandChanged);
// Reset state ready for a recalculation
_selected = false;
_trackItem = -1;
Recalculate();
Invalidate();
}