Powerpoint addin : How to manage context across multiple open documents ?

VAIBHAV MORE 1 Reputation point
2020-05-21T11:27:59.147+00:00

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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,254 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-05-25T13:05:13.523+00:00

    I'd try asking for help in dedicated MSDN VSTO forums here.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    1 person found this answer helpful.
    0 comments No comments

  2. Alex Li-MSFT 1,096 Reputation points
    2020-05-25T06:47:32.167+00:00

    Welcome to our Microsoft Q&A platform!

    According to your description, your issue is more related about vsto. And this forum is discussing and asking questions about the wpf.

    Thanks.

    0 comments No comments