How to make "document-level" Ribbon tab RRS feed

  • Question

  • Hello,


    I am facing a problem with application-level temper of custom Ribbon menus. I have created a custom Ribbon menu with two dropdownlists and one checkbox. My problem is, that values selected in these controls are intended to be set for each document individually (and probably for each document different, of course). However, when I for example select an item in one dropdownlist and then switch to another window (let's say another Word window), the item stays selected (but I need to do another selection for document that is active now).


    So, my question - how to make Ribbon menu be document-level? I guest I have to assign some kind of ID to every window/document and have all the values of controls saved for each ID. But I can't find out the right way how to make it work (for example I don't know how to distinguish individual windows).


    Any help would be appreciated, thanks...

    Wednesday, July 28, 2010 3:33 PM