I have created a Powerpoint VSTO add-in using C#.
In add-in, I have created a ribbon (using XML) that provides a Login button.
When a user clicks the login button
The login form is displayed
The user enters his credentials
If credentials are correct, the login button changes color and displays username to denote that the user is logged in
Few more ribbon buttons are made visible to allow the user to access data from the server and download it in the ppt.
My issue is :
I open one ppt document and log in. Ribbon UI is updated
If I open a second ppt document, ribbon UI shows that I have already logged in. This is invalid.
How can I contextualize the ribbon state across different presentation documents?