Reputation: 520
Create a simple VSTO Powerpoint 2010 AddIn with 1 toggle button inside the Ribbon.
Open several presentations, then clik on the toggle button.
The checked state of the toggle button is shared between all document.
How can i resolve this in order to have the same behavior that office's native's toggle-buttons ?
Upvotes: 1
Views: 396
Reputation: 3528
Off top of head, trap the event that occurs on document open or selection change; invalidate the button and call a routine that determines the state it should have based on the ActivePresentation.
Upvotes: 1