Reputation: 117
I created my own Excel Addin and after clicking the button displays a Custom Task Pane on right. Everything is fine but when I run this addin in Excel 2013. This displays Custom Task Panes with slide it open.For my Addin Flashes disappear and appear. It looks like a problem with the display. Is there any solution? It looks very, very wrong.
PS. I'm sure they do not Set Custom Task Panes instance twice.
Display and hide performed using xxxxxxx.Visible = true / false;
Slide to close is Ok.
-------ThisAddIn.cs
_calcTaskPaneControl = new UI.CalcTaskPane(); _calcTaskPaneValue = this.CustomTaskPanes.Add(_calcTaskPaneControl, Common.CommonFunctions.GetLocalizeText("ThisAddIn_CalcTaskPaneTitle")); _calcTaskPaneValue.VisibleChanged += new EventHandler(CalcTaskPaneValue_VisibleChanged);
--------MainRibbon.cs
Globals.ThisAddIn.CalcTaskPane.Visible = true;
Upvotes: 0
Views: 478
Reputation: 21
I've noticed the same with Excel 2013. Whenever you set the visibility or the width, Excel 2013 reloads the taskpane. I had to updated all places to check if the CustomTaskPane not already is visible or invisible before setting it. So when your CTP is visible and you set Visible to True again, it will reload the taskpane. Excel 2010 doesn't do this.
Upvotes: 2