none
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.

    Thanks,
    Fabian


    The Visual Studio Settings-Switcher! Visit http://visualstudiogallery.msdn.microsoft.com/a79072f7-3109-44a0-95c0-9c50e729d6a3

    Sunday, August 24, 2014 7:49 PM

Answers

All replies