I want to implement a context sensitive contextmenu but am worried I'm doing it all the wrong way.
I'm using Ribbon + Navigator for my project. I have a dropdown button which links to a kryptoncontextmenu which contains quite a few items.
Depending on the current state of my application, I might not want to make all the items in the contextmenu available. What is the best way to go about this?
Currently, my plan is to get the contextmenu done entirely in design time (Ahh... how low I have sunk...) and having all of the items disabled. Depending on my application state, I will programatically enable or disable the menu items. Is this correct? I was hoping there's some way for the contextmenu to watch certain events/properties automatically instead of having me littering enable/disable all over the place. *blush*
Thank you for your time. Any help/info is greatly appreciated.