private void ThisAddIn_Startup(object sender, System.EventArgs e) { _taskPaneControl = new TaskGTDViewWPFHost(); _taskPaneControl.MailClicked += new TaskGTDView.MailClickedEventHandler(_taskPaneControl_MailClicked); _customTaskPane = this.CustomTaskPanes.Add(_taskPaneControl as UserControl, "Task info"); _customTaskPane.Visible = true; _activeExplorer = Application.ActiveExplorer(); _activeExplorer.SelectionChange += new ExplorerEvents_10_SelectionChangeEventHandler(ThisAddIn_SelectionChange); _ribbon1.SetApplication(Application); }