private void OnButtonSpecRemoved(object sender, ButtonSpecEventArgs e)
 {
     RecreateAll();
     PerformNeedPaint(true);
 }
 /// <summary>
 /// Raises the Inserted event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserted(ButtonSpecEventArgs e)
 {
     Inserted?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Removed event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoved(ButtonSpecEventArgs e)
 {
     Removed?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Inserting event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserting(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = Owner;
     Inserting?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Removing event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoving(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = null;
     Removing?.Invoke(this, e);
 }