title: how to add custom taskpane in multiple word document
body: <p>i am developing a VSTO addin for Word.it has a toggle button in the ribbon to view and hide a taskpane. I did much of the functionality but the problem is the taskpane is not added when we are working with multiple documents. It shows the taskpane only in one document, and the toggle button also affects the other taskpane in the another document.</p>
  
  <p>I used this procedure to create a taskpane in each document but it is not working:</p>
  
  <pre><code>public void AddAllCalendarTaskPanes()
      {
          if (Globals.WritingAssistant.Application.Documents.Count &gt; 0)
          {
              if (this.Application.ShowWindowsInTaskbar == true)
              {
                  foreach (Word.Document _doc in this.Application.Documents)
                  {
                      AddCalendarTaskPane(_doc);
                  }
              }
  
          }
      }
  </code></pre>