Enable/Disable a "vsct" button - Is BeforeQueryStatus the right thing? RRS feed

  • Question

  • Hello there,

    I've a ToolWindow with a ToolBar, implemented with vsct. I want to enable/disable a button in this ToolBar, when there is an item selected in the WPF datagrid.

    Currently I'm using the BeforeQueryStatus-Methode to handle this. The problem is, that this method only get's called when there's a new ui state (or something similar). But that's not the case every time. So the enable/disable action is not quite constant or reliable.

    How can I handle this. Can I force a UI refresh? Or is there another (better) approach.


    The Visual Studio Settings-Switcher! Visit

    Sunday, August 24, 2014 7:49 PM


All replies