
Using the Winforms PropertyGrid Functionality example, I'm creating a custom image and context menu in the name block. I'm trying to figure out how to change the property editor based on what is selected in the context menu. Say that "Apply Data Binding..." is selected... then I'd want to change the ValueTemplateKey to use my custom data binding editor. If "Reset" is selected, then I'd want to revert back to the default ValueTemplateKey. I can't figure out what notifications to raise so that the editor is switched on the fly. This concept is similar to the way the VS propery inspector works. I'm using a custom TypeDescriptorFactory and custom PropertyDataAccessor.
Thoughts?