Installed products
- Visual Studio 2017 15.6.1
Description
Visual Studio extension that contains a toolbar with drop down combo still receives advised selection(IVsSelectionEvents) events after toolbar is hidden.
Steps to recreate
- Use Drop Down Combo from https://github.com/Microsoft/VSSDK-Extensibility-Samples/tree/master/Combo_Box sample
- Use IVsMonitorSelection.AdviseSelectionEvents()
- Hide the toolbar.
Current behavior
I could not find any event to be notified when toolbar is hidden/shown so could not stop receiving IVsSelectionEvents interfaces OnSelectionChanged event.
Expected behavior
Notified when toolbar is hidden or shown so Advise/UnadviseSelectionEvents() could be called.
So, i need an event that is triggered when toolbar is shown and hidden.