using Microsoft.Office.Tools.Ribbon; namespace Outlook2013TodoAddIn { /// /// Adds a button to the add-in placeholder in the ribbon /// public partial class TodoRibbonAddIn { #region "Methods" /// /// Change visibility of the pane /// /// Sender /// RibbonControlEventArgs private void toggleButton1_Click(object sender, RibbonControlEventArgs e) { Globals.ThisAddIn.ToDoTaskPane.Visible = this.toggleButton1.Checked; } #endregion } }